Added sample configs

master
Keith Irwin 2022-11-07 15:08:56 -07:00
parent cf3cd122f6
commit bd79515376
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 28 additions and 0 deletions

25
etc/config.sample Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
# FILE: /etc/wgapi/config
# DESCRIPTION: Admin-editable configs
export TLD='tld'
export LOGFILE='/var/log/apache2/error.log'
export LOCAL_SERVER='myhost'
export ADMIN_PORT=8080
export DASHBOARD_PORT=8081
export ADMIN_EMAIL='me@example.com'
export IPV4_NET='10.3.0.0/16'
export IPV6_NET='fd69:1337:0:420:f4:f3::/96'
export WG_DNS='DNS=10.3.0.1,10.3.0.2,fd69:1337:0:420:f4:f3:0:1,fd69:1337:0:420:f4:f3:0:2'
export LIB_DIR='/usr/local/bin'
export TOKENS_FILE='/var/local/wgapi_tokens'
export SERVERS_FILE='/etc/wgapi/servers'
export SSL_CONFIG_DIR="/etc/ssl/private/${TLD}"
export SSL_CA_CERT="${SSL_CONFIG_DIR}/_ca.crt"
export SSL_CA_KEY="${SSL_CONFIG_DIR}/_ca.key"
export SSL_ORG='My Org'
export SSL_DAYS='3650'
export SSL_CA_PASS='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
export DNS_KEY='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxw=='
export DNS_MASTER='10.3.0.1'
export DNS_TTL='86400'

3
etc/servers.sample Normal file
View File

@ -0,0 +1,3 @@
# host ipv4 ipv6 pubkey wg-endpoint admin-endpoint secret
myhost1 10.3.0.1 fd69:1337:0:420:f4:f3:0:1 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX= 123.123.123.123:51180 https://wgapi-admin.myhost2.tld XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
myhost2 10.3.0.2 fd69:1337:0:420:f4:f3:0:2 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX= 234.234.234.234:51880 https://wgapi-admin.myhost2.tld XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX