merge
This commit is contained in:
		
						commit
						589e4af90b
					
				| @ -1,21 +1,24 @@ | |||||||
| email: 'jon@example.com'       # must be valid (for certificate recovery and security alerts) | email: coolaj86@gmail.com | ||||||
| agree_tos: true                # agree to the Telebit, Greenlock, and Let's Encrypt TOSes | agree_tos: true | ||||||
| community_member: true         # receive infrequent relevant updates | community_member: true | ||||||
| telemetry: true                # contribute to project telemetric data | telemetry: true | ||||||
| webmin_domain: example.com | webmin_domain: example.com | ||||||
| shared_domain: xm.pl | api_domain: example.com | ||||||
| servernames:                   # hostnames that direct to the Telebit Relay admin console | shared_domain: example.com | ||||||
|   - telebit.example.com | servernames: | ||||||
|   - telebit.example.net |   - www.example.com | ||||||
| vhost: /srv/www/:hostname      # load secure websites at this path (uses template string, i.e. /var/www/:hostname/public) |   - example.com | ||||||
|  |   - api.example.com | ||||||
|  | vhost: /srv/www/:hostname | ||||||
| greenlock: | greenlock: | ||||||
|   version: 'draft-11' |   version: 'draft-11' | ||||||
|   server: 'https://acme-v02.api.letsencrypt.org/directory' |   server: 'https://acme-v02.api.letsencrypt.org/directory' | ||||||
|   store: |   store: | ||||||
|     strategy: le-store-certbot # certificate storage plugin |     strategy: le-store-certbot | ||||||
|   config_dir: /etc/acme        # directory for ssl certificates |   config_dir: /opt/telebit-relay/etc/acme | ||||||
| secret: ''                     # generate with node -e "console.log(crypto.randomBytes(16).toString('hex'))" | secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||||||
| mailer: | mailer: | ||||||
|   url: 'https://api.mailgun.net/v3/EXAMPLE.COM/messages' |   url: 'https://api.mailgun.net/v3/EXAMPLE.COM/messages' | ||||||
|   api_key: 'key-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' |   api_key: 'key-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' | ||||||
|   from: 'Example Mailer <MALIER@EXAMPLE.COM>' |   from: 'Example Mailer <MALIER@EXAMPLE.COM>' | ||||||
|  | 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 '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 '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 '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" |   sudo bash -c "cat $TELEBIT_RELAY_PATH/examples/$my_app.yml.tpl >> $TELEBIT_RELAY_PATH/etc/$my_app.yml" | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user