mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
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:
parent
bf63a8f665
commit
afc6264211
2 changed files with 7 additions and 5 deletions
|
|
@ -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;"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue