mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
Update reverse-proxy.md - Apache (#7386)
Update reverse-proxy.md Update to the Apache implementation
This commit is contained in:
parent
038e69fd02
commit
912d723281
@ -45,21 +45,12 @@ Below is an example config for Apache2 site configuration.
|
|||||||
```
|
```
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName <snip>
|
ServerName <snip>
|
||||||
|
ProxyRequests Off
|
||||||
|
ProxyPass / http://127.0.0.1:2283/ timeout=600 upgrade=websocket
|
||||||
|
ProxyPassReverse / http://127.0.0.1:2283/
|
||||||
|
ProxyPreserveHost On
|
||||||
|
|
||||||
ProxyRequests off
|
|
||||||
ProxyVia on
|
|
||||||
|
|
||||||
RewriteEngine On
|
|
||||||
RewriteCond %{REQUEST_URI} ^/api/socket.io [NC]
|
|
||||||
RewriteCond %{QUERY_STRING} transport=websocket [NC]
|
|
||||||
RewriteRule /(.*) ws://localhost:2283/$1 [P,L]
|
|
||||||
|
|
||||||
ProxyPass /api/socket.io ws://localhost:2283/api/socket.io
|
|
||||||
ProxyPassReverse /api/socket.io ws://localhost:2283/api/socket.io
|
|
||||||
|
|
||||||
<Location />
|
|
||||||
ProxyPass http://localhost:2283/
|
|
||||||
ProxyPassReverse http://localhost:2283/
|
|
||||||
</Location>
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**timeout:** is measured in seconds, and it is particularly useful when long operations are triggered (i.e. Repair), so the server doesn't return an error.
|
||||||
|
Loading…
Reference in New Issue
Block a user