Skip to content

Commit

Permalink
update test cerbot command
Browse files Browse the repository at this point in the history
  • Loading branch information
ELHart05 committed Aug 17, 2024
1 parent ca87f0e commit 712739c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ PINECONE_API_KEY = ""

# --------------------------------- Virus total key ----------------------------------
VIRUSTOTAL_API_KEY = ""

# --------------------------------- Open API key ----------------------------------
OPENAI_API_KEY = ""
6 changes: 3 additions & 3 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ http {
server {
listen 443 ssl;
http2 on;
ssl_certificate /etc/letsencrypt/live/api.cognifile.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/api.cognifile.org/privkey.pem;
server_name api.cognifile.org;
ssl_certificate /etc/letsencrypt/live/api.okba.dev/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/api.okba.dev/privkey.pem;
server_name api.okba.dev;

location / {
proxy_pass http://backend:8000;
Expand Down
21 changes: 10 additions & 11 deletions deployment/prod/docker-compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ services:
- "8000:8000"
env_file:
- ../../.env


certbot:
image: certbot/certbot:latest
container_name: certbot
volumes:
- ../../certbot/conf:/etc/letsencrypt
- ../../certbot/www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot --force-renewal --email allaouaokba@gmail.com -d api.okba.dev --agree-tos

nginx:
image: nginx:latest
container_name: nginx
Expand All @@ -23,13 +31,4 @@ services:
- "443:443"
depends_on:
- backend

certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ../../certbot/conf:/etc/letsencrypt
- ../../certbot/www:/var/www/certbot
command: certonly --nginx --webroot -w /var/www/certbot --force-renewal --email allaouaokba@gmail.com --domains api.cognifile.org --non-interactive --agree-tos
env_file:
- ../../.env
- certbot

0 comments on commit 712739c

Please sign in to comment.