diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-11 21:00:52 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-12 14:56:15 +0100 |
| commit | 6c22a6e48e8ff49a69434eca7a7b78158576cb7b (patch) | |
| tree | 2648d665bf9c27166da052fe2aa8281b56ceb498 /services/nginx/fs/sbin/cmd.bash | |
| download | net_services-6c22a6e48e8ff49a69434eca7a7b78158576cb7b.tar.gz net_services-6c22a6e48e8ff49a69434eca7a7b78158576cb7b.zip | |
Initial import
Diffstat (limited to 'services/nginx/fs/sbin/cmd.bash')
| -rwxr-xr-x | services/nginx/fs/sbin/cmd.bash | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/services/nginx/fs/sbin/cmd.bash b/services/nginx/fs/sbin/cmd.bash new file mode 100755 index 0000000..e024b4f --- /dev/null +++ b/services/nginx/fs/sbin/cmd.bash @@ -0,0 +1,11 @@ +#!/usr/bin/bash +set -eu + +# Install sensitive data in tmpfs +install --mode 400 /run/host_secrets/server.crt /run/secrets/server.crt +install --mode 400 /run/host_secrets/server.key /run/secrets/server.key + +# We have to run the entrypoint again +# Because if the first positional parameter is not "nginx" or "nginx-debug" the scripts in /docker-entrypoint.d are not ran. +# https://github.com/nginx/docker-nginx/blob/master/stable/debian/docker-entrypoint.sh +exec /docker-entrypoint.sh nginx -g "daemon off;" |
