Skip to content

Commit

Permalink
added nginx config example (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznecovas committed Apr 26, 2018
1 parent 63041ea commit db5c2ba
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ There's a demo hosted at [mouthful.dizzy.zone](https://mouthful.dizzy.zone). Che
* [Cross-origin resource sharing](#cross-origin-resource-sharing)
* [Data sources](#data-source)
* [Config file from Docker image](#config-file-from-docker)
* [Nginx configuration](#nginx-config)
* [Contributing](#contributing)
* [Wish list](#wish-list)
* [Get in touch](#get-in-touch)
Expand Down Expand Up @@ -188,6 +189,21 @@ docker run --rm vkuznecovas/mouthful cat /app/data/config.json > config.json

This will create a file named `config.json` in your host machine, you can edit it as you please. Make sure it is present in the `data` folder before runnig the docker image, read the note in [run the image](#run-the-image).

## Nginx config

In most cases, you'll want to run mouthful under nginx, or apache, or something else. In that case, this is the config I'm using for the demo:

```
location /mouthful-demo/ {
proxy_pass http://172.17.0.1:1224/;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
add_header Cache-Control 'no-cache' always;
}
```


# Contributing

Contributions are more than welcome. If you've found a bug, raise an issue. If you've got a feature request, open up an issue as well. I'll try and keep the api stable, as well as tag each release with a semantic version.
Expand Down

0 comments on commit db5c2ba

Please sign in to comment.