Files
nobswebdev b57db5f1ac Add production Docker stack with nginx and Tor.
Mirror NullCart's clearnet HTTPS and onion hidden-service pattern for serving the static promo site on a VPS.
2026-09-10 12:48:17 +02:00

12 lines
272 B
Bash
Executable File

#!/bin/sh
set -eu
export CLEARNET_DOMAIN
envsubst '${CLEARNET_DOMAIN}' \
< /etc/nginx/templates/conf.d/clearnet.conf.template \
> /etc/nginx/conf.d/clearnet.conf
cp /etc/nginx/templates/conf.d/onion.conf /etc/nginx/conf.d/onion.conf
exec nginx -g 'daemon off;'