acitivity is back and emergency is highlighted

This commit is contained in:
Luke Berndt
2025-07-12 10:43:04 -04:00
parent 0f69a3e9da
commit 57d3cb87da
8 changed files with 47 additions and 10 deletions

View File

@@ -24,3 +24,7 @@ COPY *.conf /etc/nginx/
# Add virtual hosts
COPY ${STAGE}/vhosts/ /etc/nginx/conf.d/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

20
nginx-proxy/entrypoint.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
set -e
# Render the config from template
envsubst '$DOMAIN_NAME' < /etc/nginx/conf.d/site.template > /etc/nginx/conf.d/default.conf
# Test Nginx config
nginx -t
# Background job: reload Nginx every 6 hours to pick up new certs
(
while true; do
sleep 6h
echo "[nginx] Reloading config..."
nginx -s reload && echo "[nginx] Reload succeeded" || echo "[nginx] Reload failed"
done
) &
# Start Nginx in the foreground
exec nginx -g 'daemon off;'