mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 21:50:46 +00:00
Alex Palaistras
176f65f998
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.
8 lines
225 B
Bash
Executable File
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;'
|