SeaDoc standalone Apache proxy (#519)
Some checks failed
Deploy CI - 12.0 / deploy (push) Has been cancelled

This commit is contained in:
欢乐马 2025-05-19 18:55:45 +08:00 committed by GitHub
parent 2197586cc6
commit cd561e2cc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,6 +101,8 @@ If you deploy Seafile in a cluster or if you deploy Seafile with binary package,
4. Add a reverse proxy for SeaDoc server. In cluster environtment, it means you need to add reverse proxy rules at load balance. Here, we use Nginx as an example (**please replace `127.0.0.1:80` to `host:port` of your Seadoc server**)
=== "Nginx"
```
...
server {
@ -136,6 +138,20 @@ If you deploy Seafile in a cluster or if you deploy Seafile with binary package,
}
```
=== "Apache"
```
<Location /sdoc-server/>
ProxyPass "http://127.0.0.1:80/"
ProxyPassReverse "http://127.0.0.1:80/"
</Location>
<Location /socket.io/>
# Since Apache HTTP Server 2.4.47
ProxyPass "http://127.0.0.1:80/socket.io/" upgrade=websocket
</Location>
```
5. Start SeaDoc server server with the following command
```sh