Guest User

Untitled

a guest
Jul 24th, 2024
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. server {
  2. listen 443 ssl http2;
  3. ssl_certificate "/etc/letsencrypt/live/<DOMAIN>/fullchain.pem";
  4. ssl_certificate_key "/etc/letsencrypt/live/<DOMAIN>/privkey.pem";
  5.  
  6.  
  7. ssl_prefer_server_ciphers on;
  8. ssl_session_cache shared:SSL:10m;
  9.  
  10. # OCSP stapling
  11. ssl_stapling on;
  12. ssl_stapling_verify on;
  13. resolver 8.8.8.8;
  14.  
  15. # Set HSTS to 365 days
  16. # add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains';
  17.  
  18. server_name jf.<DOMAIN>;
  19.  
  20. location /.well-known {
  21. root /var/www/certbot/;
  22. }
  23. location / {
  24. proxy_pass http://127.0.0.1:8096;
  25. proxy_set_header Host $host;
  26. proxy_set_header X-Real-IP $remote_addr;
  27. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  28.  
  29. #upgrade to WebSocket protocol when requested
  30. proxy_set_header Upgrade $http_upgrade;
  31. proxy_set_header Connection "Upgrade";
  32. }
  33.  
  34. access_log /var/wwwjf.<DOMAIN>/log/$year-$month-$day-jf.<DOMAIN>_access.log;
  35. error_log /var/www/jf.<DOMAIN>/log/jf.<DOMAIN>_error.log;
  36. }
  37.  
  38.  
Advertisement
Add Comment
Please, Sign In to add comment