-
Notifications
You must be signed in to change notification settings - Fork 4
/
.template.nginx.conf
43 lines (33 loc) · 975 Bytes
/
.template.nginx.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
32
33
34
35
36
37
38
39
40
41
42
43
server {
listen 80;
listen [::]:80;
server_name SUBDOMAIN.DOMAIN;
return 302 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name SUBDOMAIN.DOMAIN;
ssl_certificate /etc/letsencrypt/live/SUBDOMAIN.DOMAIN/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/SUBDOMAIN.DOMAIN/privkey.pem;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;
add_header Strict-Transport-Security "max-age=63072000";
access_log ACCESS_LOG;
error_log ERROR_LOG;
root BASE_DIR/DOMAIN/SUBDOMAIN/root;
location ~ /.well-known {
allow all;
root /var/www/;
}
DIRECTIVES
}