@samitouri / QOSami-HFS / commits / 6d499ea7

doc: moved reverse-proxy section to wiki

Massimo Melina committed May 4, 2023 at 16:33 UTC 6d499ea71d1611bac8b242a4c66df365add70108
1 file changed +1 -25
README.md
+1 -25
@@ -43,7 +43,7 @@ This is a full rewrite of [the Delphi version](https://github.com/rejetto/hfs2).
43 - multi-language front-end
44 - virtual hosting (plug-in)
45 - anti-brute-force (plug-in)
46 -- reverse-proxy support
46 +- [reverse-proxy support](https://github.com/rejetto/hfs/wiki/Reverse-proxy)
47
48 ## Installation
49
@@ -179,30 +179,6 @@ Some actions you can take for improved security:
179 - start antibrute plugin (it's started by default)
180 - disable "unprotected admin on localhost"
181
182 -## Reverse proxy
183 -
184 -HFS can work behind a reverse proxy. Configuration depends on what software you use, but this is an example using nginx
185 -exposing HFS under the path `/files/` instead of just `/`. Adjust it to suit your needs.
186 -
187 -```
188 -location /files/ {
189 - proxy_http_version 1.1;
190 - keepalive_timeout 30;
191 - proxy_buffering off;
192 - proxy_redirect off;
193 - proxy_max_temp_file_size 0;
194 - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # forward IP address
195 - proxy_set_header X-forwarded-prefix "/files"; # the location without final slash
196 - client_max_body_size 0; # disable max size for uploads
197 - proxy_pass http://127.0.0.1:80/;
198 -}
199 -```
200 -
201 -This is enough, but you may want to configure generated links accordingly:
202 -- go to Admin-panel > Shared files > Home > Link
203 -- click the change button (right side of the field)
204 -- enter the final URL of your proxy including the location
205 -
182 ## Hidden features
183
184 - Appending `#LOGIN` to address will bring up the login dialog