Reverse proxy: Update config to set HTTP version as required for WebSockets (#2429)
Signed-off-by: Florian Hotze <dev@florianhotze.com>pull/2432/head
parent
9bd97d7f1b
commit
9952883054
|
@ -46,6 +46,7 @@ server {
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH' always;
|
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH' always;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
proxy_http_version 1.1;
|
||||||
proxy_pass http://localhost:8080/;
|
proxy_pass http://localhost:8080/;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
@ -326,6 +327,7 @@ server {
|
||||||
add_header Strict-Transport-Security "max-age=31536000"; # Remove if using self-signed and are having trouble.
|
add_header Strict-Transport-Security "max-age=31536000"; # Remove if using self-signed and are having trouble.
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
proxy_http_version 1.1;
|
||||||
proxy_pass http://localhost:8080/;
|
proxy_pass http://localhost:8080/;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
@ -468,6 +470,7 @@ server {
|
||||||
add_header Set-Cookie X-OPENHAB-AUTH-HEADER=1;
|
add_header Set-Cookie X-OPENHAB-AUTH-HEADER=1;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
proxy_http_version 1.1;
|
||||||
proxy_pass https://localhost:8443/; #Update the port number if needed
|
proxy_pass https://localhost:8443/; #Update the port number if needed
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
Loading…
Reference in New Issue