add example nginx config to readme
This commit is contained in:
12
README.md
12
README.md
@@ -59,7 +59,7 @@ then start with `docker-compose up -d`
|
|||||||
|`GONIC_MUSIC_PATH`|`-music-path`|path to your music collection|
|
|`GONIC_MUSIC_PATH`|`-music-path`|path to your music collection|
|
||||||
|`GONIC_DB_PATH`|`-db-path`|**optional** path to database file|
|
|`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_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)|
|
|`GONIC_SCAN_INTERVAL`|`-scan-interval`|**optional** interval (in minutes) to check for new music (automatic scanning disabled if omitted)|
|
||||||
|
|
||||||
## screenshots
|
## screenshots
|
||||||
@@ -70,3 +70,13 @@ then start with `docker-compose up -d`
|
|||||||
<img width="400" src="https://github.com/sentriz/gonic/raw/master/.github/scrot_3.png">
|
<img width="400" src="https://github.com/sentriz/gonic/raw/master/.github/scrot_3.png">
|
||||||
</p>
|
</p>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
## 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;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user