From a743182033bf8f18c6d99d789f32bec786ef2d06 Mon Sep 17 00:00:00 2001 From: Justin Hanley Date: Fri, 30 May 2025 16:40:22 -0600 Subject: [PATCH] added note about using the docker ip instead of localhost for docker installs --- Using-a-Reverse-Proxy-with-Paperless-ngx.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Using-a-Reverse-Proxy-with-Paperless-ngx.md b/Using-a-Reverse-Proxy-with-Paperless-ngx.md index 7f971d3..cc0671f 100644 --- a/Using-a-Reverse-Proxy-with-Paperless-ngx.md +++ b/Using-a-Reverse-Proxy-with-Paperless-ngx.md @@ -21,7 +21,8 @@ http { location / { - # Adjust host and port as required. + # Adjust host and port as required. + # For docker you need to use the docker network 172.17.0.1:8000 instead of localhost proxy_pass http://localhost:8000/; # These configuration options are required for WebSockets to work. @@ -45,7 +46,6 @@ 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: - ``` ... location /paperless {