From dcd03cacd4e5646b4365fb0c4119a36240357dff Mon Sep 17 00:00:00 2001 From: geoffrey1330 Date: Sat, 2 Mar 2024 21:04:57 +0100 Subject: [PATCH] created action for gauzy api stage on digitalOcean droplet --- .../ssh/docker-compose.api.demo.letsencrypt.pre.yml | 12 ++++++------ .deploy/ssh/nginx.demo.pre.letsencrypt.conf | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.deploy/ssh/docker-compose.api.demo.letsencrypt.pre.yml b/.deploy/ssh/docker-compose.api.demo.letsencrypt.pre.yml index 2cd4c6f8be3..43e64e49f22 100644 --- a/.deploy/ssh/docker-compose.api.demo.letsencrypt.pre.yml +++ b/.deploy/ssh/docker-compose.api.demo.letsencrypt.pre.yml @@ -5,8 +5,8 @@ services: image: nginx:latest volumes: - ./nginx.demo.pre.letsencrypt.conf:/etc/nginx/nginx.conf:ro - - ./certbot/conf/:/etc/nginx/ssl/:ro - - ./certbot/www:/var/www/certbot/:ro + - ./certbot/conf:/etc/nginx/ssl:ro + - ./certbot/www:/var/www/certbot:ro restart: unless-stopped ports: - "80:80" @@ -17,10 +17,10 @@ services: image: certbot/certbot:latest container_name: certbot volumes: - - ./certbot/conf/:/etc/letsencrypt/:rw - - ./certbot/www/:/var/www/certbot/:rw - #--force-renewal - command: certonly --webroot -w /var/www/certbot/ --email ever@ever.tech -d apidemodts.gauzy.co --agree-tos + - ./certbot/conf:/etc/letsencrypt:rw + - ./certbot/www:/var/www/certbot:rw + + command: certonly --webroot -w /var/www/certbot --force-renewal --email ever@ever.tech -d apidemodts.gauzy.co --agree-tos volumes: certificates: {} diff --git a/.deploy/ssh/nginx.demo.pre.letsencrypt.conf b/.deploy/ssh/nginx.demo.pre.letsencrypt.conf index c560e3f7dbe..7063c8d7568 100644 --- a/.deploy/ssh/nginx.demo.pre.letsencrypt.conf +++ b/.deploy/ssh/nginx.demo.pre.letsencrypt.conf @@ -10,7 +10,7 @@ http { location / { return 301 https://$host$request_uri; } - location /.well-known/acme-challenge/ { + location ~ /.well-known/acme-challenge/ { root /var/www/certbot; } }