diff --git a/examples/telebit-relay.yml b/examples/telebit-relay.yml index 876c892..5534a3c 100644 --- a/examples/telebit-relay.yml +++ b/examples/telebit-relay.yml @@ -1,21 +1,24 @@ -email: 'jon@example.com' # must be valid (for certificate recovery and security alerts) -agree_tos: true # agree to the Telebit, Greenlock, and Let's Encrypt TOSes -community_member: true # receive infrequent relevant updates -telemetry: true # contribute to project telemetric data +email: coolaj86@gmail.com +agree_tos: true +community_member: true +telemetry: true webmin_domain: example.com -shared_domain: xm.pl -servernames: # hostnames that direct to the Telebit Relay admin console - - telebit.example.com - - telebit.example.net -vhost: /srv/www/:hostname # load secure websites at this path (uses template string, i.e. /var/www/:hostname/public) +api_domain: example.com +shared_domain: example.com +servernames: + - www.example.com + - example.com + - api.example.com +vhost: /srv/www/:hostname greenlock: version: 'draft-11' server: 'https://acme-v02.api.letsencrypt.org/directory' store: - strategy: le-store-certbot # certificate storage plugin - config_dir: /etc/acme # directory for ssl certificates -secret: '' # generate with node -e "console.log(crypto.randomBytes(16).toString('hex'))" + strategy: le-store-certbot + config_dir: /opt/telebit-relay/etc/acme +secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx mailer: url: 'https://api.mailgun.net/v3/EXAMPLE.COM/messages' api_key: 'key-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' from: 'Example Mailer ' +debug: true diff --git a/examples/telebitd.real.yml b/examples/telebitd.real.yml new file mode 100644 index 0000000..41c8cd7 --- /dev/null +++ b/examples/telebitd.real.yml @@ -0,0 +1,5 @@ +servernames: [ 'telebit.cloud' ] +email: 'coolaj86@gmail.com' +agree_tos: true +community_member: false +vhost: /srv/www/:hostname diff --git a/installer/get.sh b/installer/get.sh index 4e9e17d..f1eb20f 100644 --- a/installer/get.sh +++ b/installer/get.sh @@ -179,6 +179,9 @@ if [ ! -f "$TELEBIT_RELAY_PATH/etc/$my_app.yml" ]; then sudo bash -c "echo 'email: $my_email' >> $TELEBIT_RELAY_PATH/etc/$my_app.yml" sudo bash -c "echo 'secret: $my_secret' >> $TELEBIT_RELAY_PATH/etc/$my_app.yml" sudo bash -c "echo 'servernames: [ $my_servername ]' >> $TELEBIT_RELAY_PATH/etc/$my_app.yml" + sudo bash -c "echo 'webmin_domain: $my_servername' >> $TELEBIT_RELAY_PATH/etc/$my_app.yml" + sudo bash -c "echo 'api_domain: $my_servername' >> $TELEBIT_RELAY_PATH/etc/$my_app.yml" + sudo bash -c "echo 'shared_domain: $my_servername' >> $TELEBIT_RELAY_PATH/etc/$my_app.yml" sudo bash -c "cat $TELEBIT_RELAY_PATH/examples/$my_app.yml.tpl >> $TELEBIT_RELAY_PATH/etc/$my_app.yml" fi