Skip to content

Commit

Permalink
created action for gauzy api stage on digitalOcean droplet
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey1330 committed Mar 2, 2024
1 parent 49df190 commit acdb00c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .deploy/ssh/docker-compose.api.demo.pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ services:
- ./nginx.demo.pre.conf:/etc/nginx/nginx.conf:ro
- ./ingress.api.crt:/etc/nginx/ssl/fullchain.pem
- ./ingress.api.key:/etc/nginx/ssl/privkey.pem
- ./etc/letsencrypt:/etc/letsencrypt:ro
- ./certbot/data:/var/www/certbot
- ./certbot/conf/:/etc/nginx/ssl/:ro
- ./certbot/www:/var/www/certbot/:ro
restart: unless-stopped
ports:
- "80:80"
- "443:443"
networks:
- with-cloudflare_overlay
certbot:
image: certbot/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 ever@ever.tech -d apidemodts.gauzy.co --agree-tos
- ./certbot/conf/:/etc/letsencrypt/:rw
- ./certbot/www/:/var/www/certbot/:rw
command: certonly --webroot --webroot-path /var/www/certbot/ --force-renewal --email ever@ever.tech -d apidemodts.gauzy.co --agree-tos
volumes:
certificates: {}

Expand Down
4 changes: 2 additions & 2 deletions .deploy/ssh/nginx.demo.pre.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ http {
server_name apidemodts.gauzy.co;

# use the certificates
ssl_certificate /etc/letsencrypt/live/apidemodts.gauzy.co/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/apidemodts.gauzy.co/privkey.pem;
ssl_certificate /etc/nginx/ssl/live/apidemodts.gauzy.co/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/apidemodts.gauzy.co/privkey.pem;

location / {
proxy_pass http://api:3000;
Expand Down

0 comments on commit acdb00c

Please sign in to comment.