Skip to content

Commit

Permalink
doc: Added web socket
Browse files Browse the repository at this point in the history
To get the nginx proxy working with web sockets, e.g. to use the new log viewer in the OH4 GUI, the proxy_http_version 1.1 was added to the nginx configuration

Signed-off-by: Frank Seidinger <[email protected]>
  • Loading branch information
FSeidinger authored Dec 30, 2024
1 parent 3298dc8 commit ed57b70
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 @@ -39,6 +39,9 @@ server {
listen 80;
server_name mydomain_or_myip;

# Enable web sockets, e.g. the new log-viwer
proxy_http_version 1.1;

# Cross-Origin Resource Sharing
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow_Credentials' 'true' always;
Expand Down

0 comments on commit ed57b70

Please sign in to comment.