Cleanup nginx conf

This commit is contained in:
Daniel Berteaud 2023-09-03 16:35:05 +02:00
parent d7e279f15a
commit d36049cdd5
1 changed files with 2 additions and 4 deletions

View File

@ -14,9 +14,10 @@ server {
proxy_set_header [[ $header ]] "";
[[- end ]]
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_socket_keepalive on;
client_max_body_size 100m;
@ -29,7 +30,6 @@ server {
if ($request_method !~ ^(GET|HEAD|POST)$ ) {
return 405;
}
proxy_set_header Host "[[ (urlParse .unifi.inform.public_url).Hostname ]]";
proxy_pass http://localhost:8080;
}
@ -38,7 +38,6 @@ server {
if ($request_method !~ ^(GET|HEAD|POST)$ ) {
return 405;
}
proxy_set_header Host "[[ (urlParse .unifi.guest_portal.public_url).Hostname ]]";
proxy_pass https://localhost:8843;
}
@ -47,7 +46,6 @@ server {
if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE)$ ) {
return 405;
}
proxy_set_header Host "[[ (urlParse .unifi.controller.public_url).Hostname ]]";
proxy_pass https://localhost:8443;
}
}