File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ services:
1010 certbot :
1111 condition : service_completed_successfully
1212 container_name : nginx
13+ environment :
14+ - SERVICEDOMAIN=${SERVICEDOMAIN}
1315 ports :
1416 - " 80:80"
1517 - " 443:443"
1618 volumes :
17- - ./nginx/config:/etc/nginx/conf.d
19+ - ./nginx/config:/etc/nginx/templates
1820 - ./nginx/certs:/usr/share/nginx/certs
1921 - ../frontend/dist:/usr/share/nginx/html
2022
Original file line number Diff line number Diff line change 1-
21upstream host_service {
32 server backend:8081;
43}
@@ -18,7 +17,7 @@ log_format anon '$remote_addr_anon - $remote_user [$time_local] "$request" '
1817server {
1918 listen 80 default_server;
2019
21- server_name my.warp-charger.com ;
20+ server_name ${SERVICEDOMAIN} ;
2221
2322 access_log /var/log/nginx/access.log anon;
2423
@@ -27,9 +26,9 @@ server {
2726
2827server {
2928 listen 443 ssl;
30- server_name my.warp-charger.com ;
31- ssl_certificate /usr/share/nginx/certs/live/my.warp-charger.com /fullchain.pem;
32- ssl_certificate_key /usr/share/nginx/certs/live/my.warp-charger.com /privkey.pem;
29+ server_name ${SERVICEDOMAIN} ;
30+ ssl_certificate /usr/share/nginx/certs/live/${SERVICEDOMAIN} /fullchain.pem;
31+ ssl_certificate_key /usr/share/nginx/certs/live/${SERVICEDOMAIN} /privkey.pem;
3332
3433 ssl_protocols TLSv1.3 TLSv1.2;
3534
You can’t perform that action at this time.
0 commit comments