Skip to content

Commit

Permalink
Reverse proxy: Update config to set HTTP version as required for WebS…
Browse files Browse the repository at this point in the history
…ockets (#2429)

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Dec 17, 2024
1 parent 9bd97d7 commit 9952883
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions installation/reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ server {
add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH' always;

location / {
proxy_http_version 1.1;
proxy_pass http://localhost:8080/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down Expand Up @@ -326,6 +327,7 @@ server {
add_header Strict-Transport-Security "max-age=31536000"; # Remove if using self-signed and are having trouble.

location / {
proxy_http_version 1.1;
proxy_pass http://localhost:8080/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down Expand Up @@ -468,6 +470,7 @@ server {
add_header Set-Cookie X-OPENHAB-AUTH-HEADER=1;

location / {
proxy_http_version 1.1;
proxy_pass https://localhost:8443/; #Update the port number if needed
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit 9952883

Please sign in to comment.