diff --git a/image/seafile_9.0/templates/seafile.nginx.conf.template b/image/seafile_9.0/templates/seafile.nginx.conf.template index 9c3355b4..eec8d268 100644 --- a/image/seafile_9.0/templates/seafile.nginx.conf.template +++ b/image/seafile_9.0/templates/seafile.nginx.conf.template @@ -85,9 +85,11 @@ server { root /opt/seafile/seafile-server-latest/seahub; } +{% if https -%} # For letsencrypt location /.well-known/acme-challenge/ { alias /var/www/challenges/; try_files $uri =404; } +{% endif -%} }