Remove commented out config sections
This commit is contained in:
@@ -6,8 +6,8 @@ upstream haproxy_backend {
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl; #http2;
|
||||
listen [::]:443 ssl; # http2;
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name *.novicelab.io;
|
||||
|
||||
# SSL Certificate paths
|
||||
@@ -38,11 +38,11 @@ server {
|
||||
add_header Content-Security-Policy "default-src 'self' https: data: 'unsafe-inline' 'unsafe-eval';" always;
|
||||
|
||||
# Logging
|
||||
access_log /var/log/nginx/*.novicelab.io_access.log VCOMBINED;
|
||||
access_log /var/log/nginx/*.novicelab.io_access.log json_combined;
|
||||
error_log /var/log/nginx/*.novicelab.io_error.log debug;
|
||||
|
||||
location / {
|
||||
proxy_pass http://10.0.0.20:80; # Assuming HAProxy is on port 8080
|
||||
proxy_pass http://10.0.0.20:80;
|
||||
# proxy_pass http://haproxy_backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
|
||||
Reference in New Issue
Block a user