Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name example.com;
- return 301 https://example.com$request_uri;
- }
- server {
- server_name example.com;
- listen 443;
- ssl_certificate /opt/lego/certificates/example.com.crt;
- ssl_certificate_key /opt/lego/certificates/example.com.key;
- ssl_stapling on;
- ssl_stapling_verify on;
- ssl_prefer_server_ciphers on;
- ssl_session_cache shared:SSL:10m;
- ssl_session_timeout 10m;
- ssl_dhparam /etc/nginx/dh2048.pem;
- ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
- ssl_ciphers !aNULL:!CAMELLIA:!RC4:!SEED:!DES:!MD5:!EXP:HIGH;
- client_max_body_size 4G;
- keepalive_timeout 5;
- location / {
- proxy_read_timeout 6000s;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $http_host;
- proxy_redirect off;
- proxy_pass http://127.0.0.1:8080;
- }
- location /.well-known/acme-challenge/ {
- root /var/www/letsencrypt;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment