books.subdomain.conf 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ## Version 2020/12/09
  2. # make sure that your dns has a cname set for gitea and the following parameters in /data/gitea/conf/app.ini are edited
  3. # [server]
  4. # SSH_DOMAIN = gitea.server.com
  5. # ROOT_URL = https://gitea.server.com/
  6. # DOMAIN = gitea.server.com
  7. server {
  8. listen 443 ssl;
  9. listen [::]:443 ssl;
  10. server_name books.*;
  11. include /config/nginx/ssl.conf;
  12. client_max_body_size 0;
  13. # enable for ldap auth, fill in ldap details in ldap.conf
  14. #include /config/nginx/ldap.conf;
  15. # enable for Authelia
  16. #include /config/nginx/authelia-server.conf;
  17. location / {
  18. # enable the next two lines for http auth
  19. #auth_basic "Restricted";
  20. #auth_basic_user_file /config/nginx/.htpasswd;
  21. # enable the next two lines for ldap auth
  22. #auth_request /auth;
  23. #error_page 401 =200 /ldaplogin;
  24. # enable for Authelia
  25. #include /config/nginx/authelia-location.conf;
  26. include /config/nginx/proxy.conf;
  27. resolver 127.0.0.11 valid=30s;
  28. set $upstream_app komga;
  29. set $upstream_port 8080;
  30. set $upstream_proto http;
  31. proxy_pass $upstream_proto://$upstream_app:$upstream_port;
  32. }
  33. }