Skip to content
Snippets Groups Projects
Commit 9b2c67b2 authored by felixwelter's avatar felixwelter
Browse files

Add instructions for reverse proxy setup

parent 93dad03f
No related branches found
No related tags found
No related merge requests found
...@@ -46,9 +46,27 @@ sudo certbot --nginx -d example.com ...@@ -46,9 +46,27 @@ sudo certbot --nginx -d example.com
More details can be found here: https://www.digitalocean.com/community/tutorials/how-to-set-up-let-s-encrypt-with-nginx-server-blocks-on-ubuntu-16-04 More details can be found here: https://www.digitalocean.com/community/tutorials/how-to-set-up-let-s-encrypt-with-nginx-server-blocks-on-ubuntu-16-04
# Setup the reverse proxy
Setup a reverse proxy in your nginx config (e.g. `/etc/nginx/sites-available/default`)
If the slide index is hosted with a suffix (e.g. `<YOUR_DOMAIN>/slide-index/search`) make sure
to adjust the environment variable, which set during the container start.
```
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_buffering off;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
}
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment