From 069ae9fb71c4dfed2432d9b3451be13e438d5bb9 Mon Sep 17 00:00:00 2001 From: Manny Karyampudi Date: Tue, 24 Jun 2025 11:16:52 +0100 Subject: [PATCH] docs: fix issue with reverse proxy webroot configuration It looks like the `SHIORI_HTTP_ROOT_PATH` replaced the `SHIORI_WEBROOT` environment variable. Also, I needed to add the trailing `/` to the NGINX location config (i.e. `location /shiori/` to get the reverse proxy configuration to work. --- docs/Configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Configuration.md b/docs/Configuration.md index fdaf4e7e96..65bfab57c8 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -92,7 +92,7 @@ You can find additional details in [go postgres sql driver documentation](https: ## Reverse proxies and the webroot path -If you want to serve Shiori behind a reverse proxy, you can set the `SHIORI_WEBROOT` environment variable to the path where Shiori is served, e.g. `/shiori`. +If you want to serve Shiori behind a reverse proxy, you can set the `SHIORI_HTTP_ROOT_PATH` environment variable to the path where Shiori is served, e.g. `/shiori/`. Keep in mind this configuration wont make Shiori accessible from `/shiori` path so you need to setup your reverse proxy accordingly so it can strip the webroot path. @@ -103,7 +103,7 @@ We provide some examples for popular reverse proxies below. Please follow your r Fox nginx, you can use the following configuration as a example. The important part **is the trailing slash in `proxy_pass` directive**: ```nginx -location /shiori { +location /shiori/ { proxy_pass http://localhost:8080/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;