forked from CollaboraOnline/online
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nginx proxy example: Use $host instead of $http_host
Thanks for the suggestion @Glandos CollaboraOnline#9902 Signed-off-by: Andras Timar <[email protected]> Change-Id: Ief580e958d2b98cbff43c3256b4d8987c2f3c3cf
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
# static files | ||
location ^~ /browser { | ||
proxy_pass http://localhost:9980; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header Host $host; | ||
} | ||
|
||
# WOPI discovery URL | ||
location ^~ /hosting/discovery { | ||
proxy_pass http://localhost:9980; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header Host $host; | ||
} | ||
|
||
# Capabilities | ||
location ^~ /hosting/capabilities { | ||
proxy_pass http://localhost:9980; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header Host $host; | ||
} | ||
|
||
# main websocket | ||
location ~ ^/cool/(.*)/ws$ { | ||
proxy_pass http://localhost:9980; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "Upgrade"; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header Host $host; | ||
proxy_read_timeout 36000s; | ||
} | ||
|
||
# download, presentation and image upload | ||
# we accept 'lool' to be backward compatible | ||
location ~ ^/(c|l)ool { | ||
proxy_pass http://localhost:9980; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header Host $host; | ||
} | ||
|
||
# Admin Console websocket | ||
location ^~ /cool/adminws { | ||
proxy_pass http://localhost:9980; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "Upgrade"; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header Host $host; | ||
proxy_read_timeout 36000s; | ||
} |