wiki.subdomain.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ## Version 2020/12/09
  2. # First complete the setup by appending install.php to URL.
  3. # Make sure that your dns has a cname set for dokuwiki
  4. server {
  5. listen 443 ssl;
  6. listen [::]:443 ssl;
  7. server_name wiki.*;
  8. include /config/nginx/ssl.conf;
  9. client_max_body_size 0;
  10. #enable for ldap auth, fill in ldap details in ldap.conf
  11. #include /config/nginx/ldap.conf;
  12. # enable for Authelia
  13. #include /config/nginx/authelia-server.conf;
  14. location / {
  15. #enable the next two lines for http auth
  16. #auth_basic "Restricted";
  17. #auth_basic_user_file /config/nginx/.htpasswd;
  18. #enable the next two lines for ldap auth
  19. #auth_request /auth;
  20. #error_page 401 =200 /ldaplogin;
  21. # enable for Authelia
  22. #include /config/nginx/authelia-location.conf;
  23. include /config/nginx/proxy.conf;
  24. resolver 127.0.0.11 valid=30s;
  25. set $upstream_app dokuwiki;
  26. set $upstream_port 80;
  27. set $upstream_proto http;
  28. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  29. }
  30. }