mirror of
https://github.com/haiwen/seafile-admin-docs.git
synced 2025-12-26 02:32:50 +00:00
SeaDoc standalone Apache proxy (#519)
Some checks failed
Deploy CI - 12.0 / deploy (push) Has been cancelled
Some checks failed
Deploy CI - 12.0 / deploy (push) Has been cancelled
This commit is contained in:
parent
2197586cc6
commit
cd561e2cc6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue