Fix SSL docker issues

This commit is contained in:
LukeGus
2025-09-25 23:55:06 -05:00
parent edbc2b978c
commit 092c8e4218
4 changed files with 71 additions and 33 deletions

View File

@@ -19,16 +19,16 @@ http {
# HTTP Server - Redirect to HTTPS
server {
listen ${PORT};
server_name localhost;
server_name _;
# Redirect all HTTP traffic to HTTPS
return 301 https://$server_name:${SSL_PORT}$request_uri;
return 301 https://$host:${SSL_PORT}$request_uri;
}
# HTTPS Server
server {
listen ${SSL_PORT} ssl;
server_name localhost;
server_name _;
# SSL Certificate paths
ssl_certificate ${SSL_CERT_PATH};