Advertisement
Guest User

Nginx Conf

a guest
Jun 18th, 2021
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. server {
  2. listen 443 ssl;
  3. listen [::]:443 ssl;
  4.  
  5. server_name mesh.*;
  6.  
  7. # MeshCentral uses long standing web socket connections, set longer timeouts.
  8. proxy_send_timeout 330s;
  9. proxy_read_timeout 330s;
  10.  
  11. include /config/nginx/ssl.conf;
  12.  
  13. client_max_body_size 0;
  14.  
  15. # enable for ldap auth, fill in ldap details in ldap.conf
  16. #include /config/nginx/ldap.conf;
  17.  
  18. location / {
  19. # enable the next two lines for http auth
  20. #auth_basic "Restricted";
  21. #auth_basic_user_file /config/nginx/.htpasswd;
  22.  
  23. # enable the next two lines for ldap auth
  24. #auth_request /auth;
  25. #error_page 401 =200 /login;
  26.  
  27. include /config/nginx/proxy.conf;
  28. proxy_buffering off;
  29. #resolver 127.0.0.11 valid=30s;
  30. set $upstream_meshcentral meshcentral;
  31. proxy_pass http://$upstream_meshcentral:4430;
  32. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  33. proxy_set_header Upgrade $http_upgrade;
  34. proxy_set_header Connection $http_connection;
  35. access_log off;
  36. }
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement