Revize 43cc50af
Přidáno uživatelem Tomáš Ballák před asi 4 roky(ů)
docker/nginx/sites/default.conf | ||
---|---|---|
4 | 4 |
listen [::]:80 default_server ipv6only=on; |
5 | 5 |
|
6 | 6 |
server_name heatmap.zcu.cz www.heatmap.zcu.cz; |
7 |
ssl_certificate /certificate/key.pem;
|
|
8 |
ssl_certificate_key /certificate/cert.pem;
|
|
7 |
ssl_certificate /certificate/cert.pem;
|
|
8 |
ssl_certificate_key /certificate/key.pem;
|
|
9 | 9 |
|
10 | 10 |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
11 | 11 |
ssl_prefer_server_ciphers on; |
... | ... | |
34 | 34 |
deny all; |
35 | 35 |
} |
36 | 36 |
} |
37 |
server { |
|
38 |
listen 80 ; |
|
39 |
listen [::]:80; |
|
40 |
server_name heatmap.zcu.cz www.heatmap.zcu.cz; |
|
41 |
|
|
42 |
# Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. |
|
43 |
return 301 https://$host$request_uri; |
|
44 |
} |
Také k dispozici: Unified diff
redirect to https only + fix renew script and sites ...