From 264e9a4fd6c9962c012f2dfc282c9aeaf9ff2158 Mon Sep 17 00:00:00 2001 From: tedcook94 <33679293+tedcook94@users.noreply.github.com> Date: Mon, 18 May 2020 12:04:15 -0500 Subject: [PATCH] Add subdomain config for official Seafile image --- seafile.subdomain.config.sample | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 seafile.subdomain.config.sample diff --git a/seafile.subdomain.config.sample b/seafile.subdomain.config.sample new file mode 100644 index 0000000..5679183 --- /dev/null +++ b/seafile.subdomain.config.sample @@ -0,0 +1,26 @@ +# 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 + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name seafile.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + location / { + include /config/nginx/proxy.conf; + resolver 127.0.0.11 valid=30s; + set $upstream_app seafile; + set $upstream_port 443; + set $upstream_proto https; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + } +}