Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. server {
  2. listen 443 ssl;
  3. listen [::]:443 ssl;
  4.  
  5. server_name home.*;
  6.  
  7. include /config/nginx/ssl.conf;
  8.  
  9. client_max_body_size 0;
  10.  
  11. # enable for ldap auth, fill in ldap details in ldap.conf
  12. #include /config/nginx/ldap.conf;
  13.  
  14. location / {
  15. # enable the next two lines for http auth
  16. #auth_basic "Restricted";
  17. #auth_basic_user_file /config/nginx/.htpasswd;
  18.  
  19. # enable the next two lines for ldap auth
  20. #auth_request /auth;
  21. #error_page 401 =200 /login;
  22.  
  23. include /config/nginx/proxy.conf;
  24. resolver 127.0.0.11 valid=30s;
  25. set $upstream_organizr organizr;
  26. proxy_pass http://$upstream_organizr:75;
  27. }
  28.  
  29.  
  30. location ~ /auth-([0-9]+) {
  31. # This is used for Organizr V2
  32. internal;
  33. include /config/nginx/proxy.conf;
  34. resolver 127.0.0.11 valid=30s;
  35. set $upstream_organizr organizr;
  36. proxy_pass http://$upstream_organizr:75/api/?v1/auth&group=$1;
  37. proxy_set_header Content-Length "";
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement