coreos-home-server/config/service/nginx/container/run-nginx
Alex Palaistras 176f65f998 nginx: Fix issues, consolidate naming
Naming for services has been consolidated to `nginx-proxy` and
`nginx-serve`, and issues with resolving underlying containers in the
case of restarts have been fixed by way of resolver configuration.
2021-07-24 14:52:27 +01:00

8 lines
225 B
Bash
Executable File

#!/bin/sh
# Set NGINX resolver from system-wide configuration.
awk '/^nameserver/ {printf "resolver %s;\n", $2; exit}' /etc/resolv.conf > /etc/nginx/resolver.conf
# Start NGINX as foreground process.
nginx -g 'daemon off;'