... | ... | @@ -120,7 +120,7 @@ server { |
|
|
#add_header Strict-Transport-Security "max-age=15768000";
|
|
|
|
|
|
# Adapt this to your configuration (port, subdirectory (see below))
|
|
|
proxy_pass http://127.0.0.1:8080;
|
|
|
proxy_pass http://127.0.0.1:8081;
|
|
|
|
|
|
# Really important! Lufi uses WebSocket, it won't work without this
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
... | ... | @@ -174,9 +174,9 @@ Here's only the configuration about Lufi, you need to put it in a working Virtua |
|
|
RewriteCond %{HTTP:Connection} upgrade [NC]
|
|
|
RewriteCond %{HTTP:Upgrade} websocket [NC]
|
|
|
# Adapt this to your configuration
|
|
|
RewriteRule ^/lufi/(.*) ws://127.0.0.1:8080/lufi/$1 [P,L]
|
|
|
RewriteRule ^/lufi/(.*) ws://127.0.0.1:8081/lufi/$1 [P,L]
|
|
|
# HTTPS only, use instead of the above line (note the "wss" instead of "ws")
|
|
|
#RewriteRule ^/lufi/(.*) wss://127.0.0.1:8080/lufi/$1 [P,L]
|
|
|
#RewriteRule ^/lufi/(.*) wss://127.0.0.1:8081/lufi/$1 [P,L]
|
|
|
|
|
|
RequestHeader unset X-Forwarded-Proto
|
|
|
RequestHeader add X-Remote-Port %{R_P}e
|
... | ... | @@ -185,7 +185,7 @@ Here's only the configuration about Lufi, you need to put it in a working Virtua |
|
|
|
|
|
<Location /lufi>
|
|
|
# Adapt this to your configuration
|
|
|
ProxyPass http://127.0.0.1:8080/lufi
|
|
|
ProxyPass http://127.0.0.1:8081/lufi
|
|
|
ProxyPassReverse /lufi
|
|
|
LimitRequestBody 104857600
|
|
|
</Location>
|
... | ... | |