Mirror NullCart's clearnet HTTPS and onion hidden-service pattern for serving the static promo site on a VPS.
12 lines
272 B
Bash
Executable File
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;'
|