mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-20 17:44:56 -05:00
Updated Using a Reverse Proxy with Paperless ngx (markdown)
parent
72ee98dcf1
commit
5181c4254b
@ -44,13 +44,13 @@ http {
|
||||
The `PAPERLESS_URL` configuration variable is also required when using a
|
||||
reverse proxy; consider setting `USE_X_FORWARD_HOST=true`, `USE_X_FORWARD_PORT=true` and `PAPERLESS_PROXY_SSL_HEADER='["HTTP_X_FORWARDED_PROTO", "https"]'`. Please refer to the [hosting and security](https://docs.paperless-ngx.com/configuration/#hosting-and-security) docs.
|
||||
|
||||
When using a domain subpath (e.g. `/paperless`), you need to set `PAPERLESS_FORCE_SCRIPT_NAME=/paperless` and adjust `proxy_pass` as well:
|
||||
When using a domain subpath (e.g. `/paperless`), you need to set `PAPERLESS_FORCE_SCRIPT_NAME=/paperless` and ensure the proxy_pass setup strips that prefix:
|
||||
```
|
||||
...
|
||||
location /paperless {
|
||||
location /paperless/ {
|
||||
|
||||
# Adjust host and port as required.
|
||||
proxy_pass http://localhost:8000/paperless;
|
||||
proxy_pass http://localhost:8000/;
|
||||
...
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user