Guest User

Untitled

a guest
Sep 27th, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. server {
  2. listen 443 ssl;
  3. listen [::]:443 ssl;
  4.  
  5. server_name test.*;
  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. # enable for Authelia
  15. #include /config/nginx/authelia-server.conf;
  16.  
  17. location / {
  18. # enable the next two lines for http auth
  19. #auth_basic "Restricted";
  20. #auth_basic_user_file /config/nginx/.htpasswd;
  21.  
  22. # enable the next two lines for ldap auth
  23. #auth_request /auth;
  24. #error_page 401 =200 /ldaplogin;
  25.  
  26. # enable for Authelia
  27. #include /config/nginx/authelia-location.conf;
  28.  
  29. include /config/nginx/proxy.conf;
  30. resolver 127.0.0.11 valid=30s;
  31. set $upstream_app test;
  32. set $upstream_port 3000;
  33. set $upstream_proto http;
  34. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  35.  
  36. }
  37. }
Add Comment
Please, Sign In to add comment