docs(collabora): organize deployment guides and fix proxy chain
This commit is contained in:
@@ -10,9 +10,13 @@ server {
|
||||
# Local WOPI routes must stay on the frontend app.
|
||||
location /wopi/ {
|
||||
proxy_pass http://127.0.0.1:5193/wopi/;
|
||||
proxy_redirect http://127.0.0.1:5193/ http://172.16.0.59:5173/;
|
||||
proxy_redirect http://localhost:5193/ http://172.16.0.59:5173/;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
@@ -26,14 +30,14 @@ server {
|
||||
|
||||
# Collabora shell endpoint.
|
||||
location /collabora/ {
|
||||
proxy_pass http://172.16.0.58:9980/;
|
||||
proxy_pass http://127.0.0.1:9980/;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host nas.7bm.co:5173;
|
||||
proxy_set_header Host 172.16.0.59:5173;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host nas.7bm.co:5173;
|
||||
proxy_set_header X-Forwarded-Host 172.16.0.59:5173;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
@@ -46,14 +50,14 @@ server {
|
||||
location /browser/ {
|
||||
# Keep the original escaped URI; Collabora websocket/document paths
|
||||
# break if nginx normalizes `%2F` inside the encoded WOPI URL.
|
||||
proxy_pass http://172.16.0.58:9980;
|
||||
proxy_pass http://127.0.0.1:9980;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host nas.7bm.co:5173;
|
||||
proxy_set_header Host 172.16.0.59:5173;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host nas.7bm.co:5173;
|
||||
proxy_set_header X-Forwarded-Host 172.16.0.59:5173;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
@@ -65,14 +69,32 @@ server {
|
||||
location /cool/ {
|
||||
# Websocket path contains an encoded WOPI URL in the URI path.
|
||||
# Do not append a URI here, otherwise nginx may decode `%2F`.
|
||||
proxy_pass http://172.16.0.58:9980;
|
||||
proxy_pass http://127.0.0.1:9980;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host nas.7bm.co:5173;
|
||||
proxy_set_header Host 172.16.0.59:5173;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host nas.7bm.co:5173;
|
||||
proxy_set_header X-Forwarded-Host 172.16.0.59:5173;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_send_timeout 3600s;
|
||||
proxy_connect_timeout 60s;
|
||||
}
|
||||
|
||||
location /coolws/ {
|
||||
# Child websocket bootstrap path used by Collabora Online.
|
||||
proxy_pass http://127.0.0.1:9980;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host 172.16.0.59:5173;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host 172.16.0.59:5173;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
@@ -82,14 +104,14 @@ server {
|
||||
}
|
||||
|
||||
location /hosting/ {
|
||||
proxy_pass http://172.16.0.58:9980;
|
||||
proxy_pass http://127.0.0.1:9980;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host nas.7bm.co:5173;
|
||||
proxy_set_header Host 172.16.0.59:5173;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host nas.7bm.co:5173;
|
||||
proxy_set_header X-Forwarded-Host 172.16.0.59:5173;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
@@ -99,14 +121,14 @@ server {
|
||||
}
|
||||
|
||||
location /loleaflet/ {
|
||||
proxy_pass http://172.16.0.58:9980;
|
||||
proxy_pass http://127.0.0.1:9980;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host nas.7bm.co:5173;
|
||||
proxy_set_header Host 172.16.0.59:5173;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host nas.7bm.co:5173;
|
||||
proxy_set_header X-Forwarded-Host 172.16.0.59:5173;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
|
||||
@@ -118,9 +140,13 @@ server {
|
||||
# Everything else remains on Next dev server.
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:5193;
|
||||
proxy_redirect http://127.0.0.1:5193/ http://172.16.0.59:5173/;
|
||||
proxy_redirect http://localhost:5193/ http://172.16.0.59:5173/;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
Reference in New Issue
Block a user