-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
55 lines (52 loc) · 1.37 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
server {
listen 80;
listen [::]:80;
server_name SERVERNAME;
location / {
rewrite ^ https://$host$request_uri? permanent;
}
location ~ /.well-known/acme-challenge {
allow all;
root /data/letsencrypt;
}
}
## server {
## listen 443 ssl http2;
## listen [::]:443 ssl http2;
## server_name SERVERNAME
##
## server_tokens off;
##
## ssl_certificate /etc/letsencrypt/live/SERVERNAME/fullchain.pem;
## ssl_certificate_key /etc/letsencrypt/live/SERVERNAME/privkey.pem;
##
## ssl_buffer_size 8k;
##
## ssl_dhparam /etc/ssl/certs/nginx/dh2048.pem;
##
## ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
## ssl_prefer_server_ciphers on;
##
## ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5;
##
## ssl_ecdh_curve secp384r1;
## ssl_session_tickets off;
##
## # OCSP stapling
## ssl_stapling on;
## ssl_stapling_verify on;
## resolver 8.8.8.8;
##
## location ~ /.well-known/acme-challenge {
## allow all;
## root /data/letsencrypt;
## }
##
## location / {
## proxy_pass http://HOSTIP:DESTPORT;
## 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-Proto https;
## }
## }