sixshooterz

OpenVPN-AS

Nov 15th, 2018
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. # make sure that your dns has a cname set for openvpn-as
  2.  
  3. server {
  4. listen 443 ssl;
  5.  
  6. server_name vpn.*;
  7.  
  8. include /config/nginx/ssl.conf;
  9.  
  10. client_max_body_size 0;
  11.  
  12. # enable for ldap auth, fill in ldap details in ldap.conf
  13. #include /config/nginx/ldap.conf;
  14.  
  15. location / {
  16. # enable the next two lines for http auth
  17. #auth_basic "Restricted";
  18. #auth_basic_user_file /config/nginx/.htpasswd;
  19.  
  20. # enable the next two lines for ldap auth
  21. #auth_request /auth;
  22. #error_page 401 =200 /login;
  23.  
  24. include /config/nginx/proxy.conf;
  25. resolver 127.0.0.11 valid=30s;
  26. set $upstream_vpn openvpnas;
  27. proxy_pass https://$upstream_vpn:943;
  28. }
  29. }
Add Comment
Please, Sign In to add comment