mirror of
https://github.com/go-shiori/shiori.git
synced 2025-09-08 05:54:31 +08:00
docs: fix issue with reverse proxy webroot configuration (#1121)
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.
This commit is contained in:
parent
b58e76ec8d
commit
24e06a5678
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue