From acdb00c21e91d84d9297226bdc46f4a7495df417 Mon Sep 17 00:00:00 2001 From: geoffrey1330 Date: Sat, 2 Mar 2024 18:52:08 +0100 Subject: [PATCH] created action for gauzy api stage on digitalOcean droplet --- .deploy/ssh/docker-compose.api.demo.pre.yml | 12 ++++++------ .deploy/ssh/nginx.demo.pre.conf | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.deploy/ssh/docker-compose.api.demo.pre.yml b/.deploy/ssh/docker-compose.api.demo.pre.yml index 1aceb5fdfc7..35708db3941 100644 --- a/.deploy/ssh/docker-compose.api.demo.pre.yml +++ b/.deploy/ssh/docker-compose.api.demo.pre.yml @@ -7,8 +7,8 @@ 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" @@ -16,12 +16,12 @@ services: 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: {} diff --git a/.deploy/ssh/nginx.demo.pre.conf b/.deploy/ssh/nginx.demo.pre.conf index 46194dedda2..2f1a7061fe8 100644 --- a/.deploy/ssh/nginx.demo.pre.conf +++ b/.deploy/ssh/nginx.demo.pre.conf @@ -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;