Advertisement
Guest User

Untitled

a guest
Jan 24th, 2025
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. # ------------------------------------------------------------
  2. # [My Synapse URL]
  3. # ------------------------------------------------------------
  4.  
  5.  
  6. server {
  7. set $forward_scheme http;
  8. set $server "192.168.0.111";
  9. set $port 8450;
  10.  
  11. listen 80;
  12. listen 8448;
  13. #listen [::]:80;
  14.  
  15. listen 443 ssl http2;
  16. #listen [::]:443;
  17.  
  18.  
  19. server_name [My Synapse URL];
  20.  
  21.  
  22. # Let's Encrypt SSL
  23. include conf.d/include/letsencrypt-acme-challenge.conf;
  24. include conf.d/include/ssl-ciphers.conf;
  25. ssl_certificate /etc/letsencrypt/live/npm-51/fullchain.pem;
  26. ssl_certificate_key /etc/letsencrypt/live/npm-51/privkey.pem;
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. # Block Exploits
  34. include conf.d/include/block-exploits.conf;
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. # Force SSL
  43. include conf.d/include/force-ssl.conf;
  44.  
  45.  
  46.  
  47.  
  48. proxy_set_header Upgrade $http_upgrade;
  49. proxy_set_header Connection $http_connection;
  50. proxy_http_version 1.1;
  51.  
  52.  
  53. access_log /proc/1/fd/1 proxy;
  54. error_log /proc/1/fd/1 warn;
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. location / {
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73. proxy_set_header Upgrade $http_upgrade;
  74. proxy_set_header Connection $http_connection;
  75. proxy_http_version 1.1;
  76.  
  77.  
  78. # Proxy!
  79. include conf.d/include/proxy.conf;
  80. }
  81.  
  82.  
  83. # Custom
  84. include /config/nginx/custom/server_proxy[.]conf;
  85. }
  86.  
  87.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement