diff --git a/seafile.subdomain.conf.sample b/seafile.subdomain.conf.sample index 29ffdbe..256688c 100644 --- a/seafile.subdomain.conf.sample +++ b/seafile.subdomain.conf.sample @@ -1,7 +1,6 @@ ## Version 2021/05/18 # For use with the official Seafile Docker image (https://download.seafile.com/published/seafile-manual/docker/deploy%20seafile%20with%20docker.md) # Requires that the seafile container uses the following env variables: -# SEAFILE_SERVER_LETSENCRYPT=true # SEAFILE_SERVER_HOSTNAME=seafile.yourdomain.com # Restart or create the seafile container after enabling this subdomain and restarting the letsencrypt contianer @@ -15,12 +14,29 @@ server { client_max_body_size 0; + # enable for ldap auth, fill in ldap details in ldap.conf + #include /config/nginx/ldap.conf; + + # enable for Authelia + #include /config/nginx/authelia-server.conf; + location / { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable the next two lines for ldap auth + #auth_request /auth; + #error_page 401 =200 /ldaplogin; + + # enable for Authelia + #include /config/nginx/authelia-location.conf; + include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app seafile; - set $upstream_port 443; - set $upstream_proto https; + set $upstream_port 80; + set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; }