mirror of
https://git.coolaj86.com/coolaj86/telebit-relay.js.git
synced 2025-02-23 01:28:04 +00:00
add subdomain config
This commit is contained in:
parent
c8c06d1b99
commit
6c2f039533
@ -1,17 +1,20 @@
|
||||
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
|
||||
debug: true
|
||||
|
5
examples/telebitd.real.yml
Normal file
5
examples/telebitd.real.yml
Normal file
@ -0,0 +1,5 @@
|
||||
servernames: [ 'telebit.cloud' ]
|
||||
email: 'coolaj86@gmail.com'
|
||||
agree_tos: true
|
||||
community_member: false
|
||||
vhost: /srv/www/:hostname
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user