123456789101112131415161718192021222324252627282930313233 |
- server {
- server_name changethis;
- listen 443 ssl;
- listen [::]:443 ssl;
- http2 on;
- ssl_certificate /etc/letsencrypt/live/changethis/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/changethis/privkey.pem;
- include /etc/letsencrypt/options-ssl-nginx.conf;
- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
- resolver 1.1.1.1;
- ssl_trusted_certificate /etc/letsencrypt/live/changethis/chain.pem;
- ssl_stapling on;
- ssl_stapling_verify on;
- access_log /dev/null;
- error_log /dev/null;
- location / {
- proxy_set_header X-Forwarded-For $remote_addr;
- proxy_pass http://localhost:8282;
- }
- }
- server {
- listen 80;
- listen [::]:80;
- server_name changethis;
- return 301 https://changethis$request_uri;
- }
|