Updated the cert filenames and paths

This commit is contained in:
Scott Idem
2024-02-13 17:42:20 -05:00
parent 3a14925540
commit 9fe60c418d
3 changed files with 28 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
server {
listen 80;
listen [::]:80;
server_name
${DOCKER_AE_API_SERVER_NAME}
fastapi.localhost
@@ -36,13 +36,13 @@ server {
fastcgi_connect_timeout 4s;
fastcgi_send_timeout 5s;
fastcgi_read_timeout 5s;
# proxy read timeout being too low will cause 504 Gateway Time-out on the client browser
proxy_read_timeout 2100s;
proxy_pass http://fastapi_backend;
}
location /ws {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
@@ -61,7 +61,7 @@ server {
# proxy_headers_hash_max_size 1024;
proxy_pass http://fastapi_backend;
access_log /logs/nginx/access_fastapi_gunicorn_ws.log;
error_log /logs/nginx/error_fastapi_gunicorn_ws.log;
}
@@ -71,7 +71,7 @@ server {
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name
${DOCKER_AE_API_SERVER_NAME}
fastapi.localhost
@@ -90,8 +90,8 @@ server {
include /etc/nginx/options-ssl-nginx.conf;
ssl_certificate /etc/certs/fullchain.pem;
ssl_certificate_key /etc/certs/privkey.pem;
ssl_certificate /etc/certs/fullchain_wild.pem;
ssl_certificate_key /etc/certs/privkey_wild.pem;
ssl_dhparam /etc/certs/ssl-dhparams.pem;
# include brotli.conf;
@@ -115,13 +115,13 @@ server {
fastcgi_connect_timeout 35s;
fastcgi_send_timeout 35s;
fastcgi_read_timeout 35s;
# proxy read timeout being too low will cause 504 Gateway Time-out on the client browser
proxy_read_timeout 2100s;
proxy_pass http://fastapi_backend;
}
location /ws {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
@@ -140,7 +140,7 @@ server {
# proxy_headers_hash_max_size 1024;
proxy_pass http://fastapi_backend;
access_log /logs/nginx/access_fastapi_gunicorn_ws.log;
error_log /logs/nginx/error_fastapi_gunicorn_ws.log;
}

View File

@@ -1,14 +1,14 @@
server {
listen 80;
listen [::]:80;
# server_name
# ${NGINX_SERVER_NAMES}
# ;
server_name
${DOCKER_AE_APP_SERVER_NAME}
flask_gunicorn.localhost demo.localhost dev.localhost
dev-app.oneskyit.com
dev-connect.oneskyit.com *.dev-connect.oneskyit.com
dev-demo.oneskyit.com *.dev-demo.oneskyit.com
@@ -70,7 +70,7 @@ server {
server {
listen 443 ssl;
listen [::]:443 ssl;
# The Docker nginx envsubst with templates does not work for multiple server names.
# server_name
# ${NGINX_SERVER_NAMES}
@@ -116,8 +116,8 @@ server {
include /etc/nginx/options-ssl-nginx.conf;
ssl_certificate /etc/certs/fullchain.pem;
ssl_certificate_key /etc/certs/privkey.pem;
ssl_certificate /etc/certs/fullchain_wild.pem;
ssl_certificate_key /etc/certs/privkey_wild.pem;
ssl_dhparam /etc/certs/ssl-dhparams.pem;
# include brotli.conf;