Commit 67a06e7c authored by Luc Didry's avatar Luc Didry

Add Nginx configuration

parent fe29a4de
......@@ -91,6 +91,8 @@ The configuration template contains explanations about the options.
The only two mandatory settings are `rev_dir` and `ethercalc_url`. EthercalcRevisionTool won't start if you don't set it!
`prefix` is important too: if you want EthercalcRevisionTool to be reachable with ``, you need to set `prefix` to `/ert`.
## Init files
### InitV
......@@ -135,3 +137,34 @@ You need to change `EDIR` and `USER` in `/etc/default/ethercalc_revision_tool` t
start ethercalc_revision_tool
## Nginx
You need to update you nginx configuration in order to be able to add EthercalcRevisionTool to Ethercalc. Open your nginx configuration file for Ethercalc:
vim /etc/nginx/sites-enabled/ethercalc
Add this snippet (adapt it to your configuration, the `hypnotoad` and the `prefix` settings):
location /ert/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# We expect the downsteam servers to redirect to the right hostname, so don't do any rewrites here.
proxy_redirect off;
Test Nginx's configuration and reload it
nginx -t && nginx -s reload
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment