nginx.conf 767 B

123456789101112131415161718192021222324252627282930313233
  1. server {
  2. server_name changethis;
  3. listen 443 ssl;
  4. listen [::]:443 ssl;
  5. http2 on;
  6. ssl_certificate /etc/letsencrypt/live/changethis/fullchain.pem;
  7. ssl_certificate_key /etc/letsencrypt/live/changethis/privkey.pem;
  8. include /etc/letsencrypt/options-ssl-nginx.conf;
  9. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
  10. resolver 1.1.1.1;
  11. ssl_trusted_certificate /etc/letsencrypt/live/changethis/chain.pem;
  12. ssl_stapling on;
  13. ssl_stapling_verify on;
  14. access_log /dev/null;
  15. error_log /dev/null;
  16. location / {
  17. proxy_set_header X-Forwarded-For $remote_addr;
  18. proxy_pass http://localhost:8282;
  19. }
  20. }
  21. server {
  22. listen 80;
  23. listen [::]:80;
  24. server_name changethis;
  25. return 301 https://changethis$request_uri;
  26. }