Advertisement
Guest User

nginx-conf

a guest
Jan 13th, 2025
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. # ------------------------------------------------------------
  2. # jelly.domain.com
  3. # ------------------------------------------------------------
  4.  
  5.  
  6.  
  7. map $scheme $hsts_header {
  8. https "max-age=63072000; preload";
  9. }
  10.  
  11. server {
  12. set $forward_scheme http;
  13. set $server "192.168.168.168";
  14. set $port 8096;
  15.  
  16. listen 80;
  17. listen [::]:80;
  18.  
  19. listen 443 ssl;
  20. listen [::]:443 ssl;
  21.  
  22.  
  23. server_name jelly.domain.com;
  24.  
  25.  
  26. # Let's Encrypt SSL
  27. include conf.d/include/letsencrypt-acme-challenge.conf;
  28. include conf.d/include/ssl-ciphers.conf;
  29. ssl_certificate /etc/letsencrypt/live/npm-6/fullchain.pem;
  30. ssl_certificate_key /etc/letsencrypt/live/npm-6/privkey.pem;
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37. # Block Exploits
  38. include conf.d/include/block-exploits.conf;
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. access_log /data/logs/proxy-host-4_access.log proxy;
  49. error_log /data/logs/proxy-host-4_error.log warn;
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. location / {
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. # Proxy!
  68. include conf.d/include/proxy.conf;
  69. }
  70.  
  71.  
  72. # Custom
  73. include /data/nginx/custom/server_proxy[.]conf;
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement