-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsaml.conf
31 lines (28 loc) · 941 Bytes
/
saml.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
##############################
### REDIRECT HTTP TO HTTPS ###
##############################
server {
listen 80 default_server;
server_name saml.aswwu.com;
return 301 https://$host$request_uri;
}
#############
### HTTPS ###
#############
server {
listen 443;
server_name saml.aswwu.com;
ssl on;
ssl_certificate /etc/letsencrypt/live/aswwu.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/aswwu.com/privkey.pem;
location / {
proxy_pass http://127.0.0.1:8000/;
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-Host $host:443;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Port 443;
proxy_set_header X-Forwarded-Proto https;
}
}