fix: use nginx to proxy onlyoffice (#525)
Some checks are pending
Deploy CI - 12.0 / deploy (push) Waiting to run

This commit is contained in:
Huang Junxiang 2025-05-27 14:04:21 +08:00 committed by GitHub
parent 514e659d68
commit 8e32934341
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 3 deletions

View File

@ -189,4 +189,4 @@ kubectl delete -f /opt/seafile-k8s-yaml/ -n seafile
## Advanced operations
Please refer from [here](./k8s_advanced_management) for futher advanced operations.
Please refer from [here](./k8s_advanced_management.md) for futher advanced operations.

View File

@ -340,4 +340,4 @@ helm delete seafile --namespace seafile
## Advanced operations
Please refer from [here](./k8s_advanced_management) for futher advanced operations.
Please refer from [here](./k8s_advanced_management.md) for futher advanced operations.

View File

@ -123,4 +123,4 @@ kubectl delete -f /opt/seafile-k8s-yaml/ -n seafile
## Advanced operations
Please refer from [here](./k8s_advanced_management) for futher advanced operations.
Please refer from [here](./k8s_advanced_management.md) for futher advanced operations.

View File

@ -160,6 +160,18 @@ Modify `nginx.conf` and add reverse proxy for services ***seafile*** and ***sead
```
=== "onlyoffice"
```conf
map $http_x_forwarded_proto $the_scheme {
default $http_x_forwarded_proto;
"" $scheme;
}
map $http_x_forwarded_host $the_host {
default $http_x_forwarded_host;
"" $host;
}
map $http_upgrade $proxy_connection {
default upgrade;
"" close;
}
location /onlyofficeds/ {
proxy_pass http://127.0.0.1:6233/;
proxy_http_version 1.1;