-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhw2-nginx-ssl
More file actions
33 lines (25 loc) · 878 Bytes
/
hw2-nginx-ssl
File metadata and controls
33 lines (25 loc) · 878 Bytes
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
32
server {
listen 80;
#server_name dmitri.ohsu.edu;
return 301 https://$server_name$request_uri;
}
server{
listen 443 ssl;
#server_name dmitri.ohsu.edu;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
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;
}
location /static/ {
autoindex on;
alias /var/www/hitwalker2_inst/static;
}
}