refactor(NGINX): auto-load certificates

- use container-bound certificates by default
- do not use separate certificate loading include
This commit is contained in:
Asif Bacchus 2021-01-08 22:02:22 -07:00
parent c240708a78
commit cbb8595380
4 changed files with 6 additions and 8 deletions

View File

@ -4,7 +4,9 @@
# Generated: January 5, 2021 # Generated: January 5, 2021
# #
# SSL certificates should be defined in the relevant server block # SSL certificate and key location
ssl_certificate /certs/fullchain.pem;
ssl_certificate_key /certs/privkey.pem;
# SSL parameters # SSL parameters
ssl_session_timeout 1d; ssl_session_timeout 1d;

View File

@ -4,7 +4,9 @@
# Generated: January 5, 2021 # Generated: January 5, 2021
# #
# SSL certificates should be defined in the relevant server block # SSL certificate and key location
ssl_certificate /certs/fullchain.pem;
ssl_certificate_key /certs/privkey.pem;
# SSL parameters # SSL parameters
ssl_session_timeout 1d; ssl_session_timeout 1d;

View File

@ -1,3 +0,0 @@
# SSL certificate for this connection
ssl_certificate /certs/fullchain.pem;
ssl_certificate_key /certs/privkey.pem;

View File

@ -30,9 +30,6 @@ server {
listen 443 ssl http2; listen 443 ssl http2;
include /etc/nginx/server_names.conf; include /etc/nginx/server_names.conf;
# ssl certificates
include /etc/nginx/ssl_certs.conf;
location / { location / {
try_files $uri $uri/ =404; try_files $uri $uri/ =404;
} }