readme
This commit is contained in:
parent
63884e696b
commit
757270c53f
16
README.md
16
README.md
@ -176,19 +176,19 @@ You can use nginx to proxy your website, and add https-support (instead of plain
|
||||
files efficiently. Make sure nginx is installed and configure the website, for example by creating the
|
||||
`/etc/nginx/conf.d/yourwebsite.conf` file on centos:
|
||||
|
||||
# Make sure the port matches
|
||||
upstream yourwebsiteupstream {
|
||||
# Make sure the port matches
|
||||
upstream yourwebsiteupstream {
|
||||
server 127.0.0.1:8890;
|
||||
}
|
||||
}
|
||||
|
||||
# Forward http to https
|
||||
server {
|
||||
# Forward http to https
|
||||
server {
|
||||
listen 80;
|
||||
server_name cosmo.service.rug.nl;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
server {
|
||||
client_max_body_size 64M;
|
||||
proxy_connect_timeout 300;
|
||||
proxy_send_timeout 300;
|
||||
@ -217,7 +217,7 @@ server {
|
||||
# the https-part is handled by nginx, and hence not seen by the django SAML2 code.
|
||||
proxy_set_header X_FORWARDED_PROTO https;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Restart nginx to load the settings `sudo service nginx restart` (or `reload`, to only reload the settings instaed of a
|
||||
full restart)
|
||||
|
Loading…
Reference in New Issue
Block a user