diff --git a/README.md b/README.md index a528b16..847fd12 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ then start with `docker-compose up -d` |`GONIC_MUSIC_PATH`|`-music-path`|path to your music collection| |`GONIC_DB_PATH`|`-db-path`|**optional** path to database file| |`GONIC_LISTEN_ADDR`|`-listen-addr`|**optional** host and port to listen on (eg. `0.0.0.0:4747`, `127.0.0.1:4747`) (*default* `0.0.0.0:4747`)| -|`GONIC_PROXY_PREFIX`|`-proxy-prefix`|**optional** url path prefix to use if behind reverse proxy. eg `/gonic`| +|`GONIC_PROXY_PREFIX`|`-proxy-prefix`|**optional** url path prefix to use if behind reverse proxy. eg `/gonic` (see example configs below)| |`GONIC_SCAN_INTERVAL`|`-scan-interval`|**optional** interval (in minutes) to check for new music (automatic scanning disabled if omitted)| ## screenshots @@ -70,3 +70,13 @@ then start with `docker-compose up -d`

+ +## example nginx config with `GONIC_PROXY_PREFIX` + +```nginx + location /gonic/ { + proxy_pass http://localhost:4747/; + # set X-Forwarded-Host for last.fm connection callback + proxy_set_header X-Forwarded-Host $host; + } +```