File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ services:
1515 pixel-battle : true
1616 deployment : prod
1717 volumes :
18- - /etc/letsencrypt/live/${DOMAIN}:/mnt/ssl
18+ - /etc/letsencrypt:/etc/letsencrypt
1919 depends_on :
2020 backend :
2121 condition : service_healthy
@@ -29,6 +29,8 @@ services:
2929 networks :
3030 - backend-net
3131 mem_limit : 10mb
32+ environment :
33+ DOMAIN : ${DOMAIN}
3234
3335 backend :
3436 image : pixel-battle-backend:prod
Original file line number Diff line number Diff line change 11FROM nginx:1.27-alpine3.21-perl
22
3- COPY deployments/prod/https-server/nginx.conf /etc/nginx/nginx.conf
3+ COPY deployments/prod/https-server/nginx.conf.template /etc/nginx/templates/ nginx.conf.template
Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ http {
1010
1111 server {
1212 listen 443 ssl;
13+ server ${DOMAIN};
1314
14- ssl_certificate /mnt/ ssl /fullchain.pem;
15- ssl_certificate_key /mnt/ ssl /privkey.pem;
15+ ssl_certificate /etc/letsencrypt/live/${DOMAIN} /fullchain.pem;
16+ ssl_certificate_key /etc/letsencrypt/live/${DOMAIN} /privkey.pem;
1617 ssl_certificate_cache max=1000 inactive=20s valid=1m;
18+
1719 ssl_session_cache shared:SSL:1m;
1820
1921 location / {
You can’t perform that action at this time.
0 commit comments