This repository has been archived on 2021-05-15. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-05-27 16:25:44 +02:00
|
|
|
#!/bin/sh
|
|
|
|
su-exec tor tor -f /etc/tor/torrc
|
|
|
|
|
|
|
|
tor_domain=$(cat /var/lib/tor/hidden-service/hostname)
|
|
|
|
main_domain=$(echo $MAIN_DOMAIN|sed 's/\./\\\./')
|
|
|
|
|
2019-07-15 17:24:34 +02:00
|
|
|
sed -e "s/@@TOR_DOMAIN@@/$tor_domain/g" \
|
2019-05-27 16:25:44 +02:00
|
|
|
-e "s/@@MAIN_DOMAIN@@/$main_domain/g" \
|
2019-07-15 17:24:34 +02:00
|
|
|
/etc/nginx/nginx.conf.tmpl > /etc/nginx/nginx.conf
|
2019-05-27 16:25:44 +02:00
|
|
|
|
|
|
|
echo $tor_domain
|
|
|
|
|
|
|
|
nginx -g 'daemon off;'
|