-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhttps.conf
More file actions
38 lines (31 loc) · 1006 Bytes
/
https.conf
File metadata and controls
38 lines (31 loc) · 1006 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
33
34
35
36
37
38
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name xxx.yyy.com;
client_max_body_size 10M;
client_body_buffer_size 10M;
ssl_certificate /usr/src/cert/fullchain.cer;
ssl_certificate_key /usr/src/cert/private.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location /nice {
proxy_redirect off;
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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 / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}