fix: start nginx via its built-in entrypoint script

Our custom `docker-entrypoint.sh` starts nginx by directly calling
`nginx -g "daemon off;"`. However, we need the `docker-entrypoint.sh`
built-in in the nginx docker image to convert `default.conf.template` to
the actual nginx config file. Without going through nginx's
`docker-entrypoint.sh`, the resultant docker image fallback to the
default nginx configuration, which doesn't forward traffic to webdav
backend server.

This patch fixes this by calling the nginx's `docker-entrypoint.sh` at
the end of our custom `docker-entrypoint.sh`.

Fix: The first issue in https://github.com/johannesjo/super-productivity/issues/4545#issuecomment-2974843258
This commit is contained in:
Kingsley Yung 2025-06-16 19:51:21 +08:00 committed by Johannes Millan
parent bf63a8f665
commit afc6264211
2 changed files with 7 additions and 5 deletions

View file

@ -30,5 +30,5 @@ if [ "$JSON" != "{}" ]; then
echo "$JSON" >$JSON_PATH
fi
# run nginx
nginx -g "daemon off;"
# go back to nginx's built-in entrypoint script
exec /docker-entrypoint.sh nginx -g "daemon off;"