2020-04-28 13:11:49 +02:00
|
|
|
# IP address to listen to
|
2020-01-30 07:45:49 +01:00
|
|
|
SERVER=0.0.0.0
|
2020-04-28 13:11:49 +02:00
|
|
|
# port to bind
|
2020-01-30 07:45:49 +01:00
|
|
|
PORT=8080
|
2020-04-28 13:11:49 +02:00
|
|
|
# Gin framework release mode
|
2020-02-03 08:19:24 +01:00
|
|
|
GIN_MODE=release
|
2020-04-28 13:11:49 +02:00
|
|
|
# where to write all generated config files
|
2020-01-30 07:45:49 +01:00
|
|
|
WG_CONF_DIR=./wireguard
|
2020-04-28 13:11:49 +02:00
|
|
|
# WireGuard main config file name, generally <interface name>.conf
|
2020-01-30 07:45:49 +01:00
|
|
|
WG_INTERFACE_NAME=wg0.conf
|
2020-02-03 08:19:24 +01:00
|
|
|
|
2020-04-28 13:11:49 +02:00
|
|
|
# SMTP settings to send email to clients
|
2020-02-03 08:19:24 +01:00
|
|
|
SMTP_HOST=smtp.gmail.com
|
|
|
|
SMTP_PORT=587
|
|
|
|
SMTP_USERNAME=account@gmail.com
|
2020-04-28 13:11:49 +02:00
|
|
|
SMTP_PASSWORD=*************
|
|
|
|
SMTP_FROM=Wg Gen Web <account@gmail.com>
|
|
|
|
|
|
|
|
# example with gitlab, which is RFC implementation and no need any custom stuff
|
|
|
|
OAUTH2_PROVIDER_NAME=oauth2oidc
|
|
|
|
OAUTH2_PROVIDER=https://gitlab.com
|
|
|
|
OAUTH2_CLIENT_ID=
|
|
|
|
OAUTH2_CLIENT_SECRET=
|
|
|
|
OAUTH2_REDIRECT_URL=https://wg-gen-web-demo.127-0-0-1.fr
|
|
|
|
|
|
|
|
# example with google
|
|
|
|
OAUTH2_PROVIDER_NAME=google
|
|
|
|
OAUTH2_PROVIDER=
|
|
|
|
OAUTH2_CLIENT_ID=
|
|
|
|
OAUTH2_CLIENT_SECRET=
|
|
|
|
OAUTH2_REDIRECT_URL=
|
|
|
|
|
|
|
|
# example with github
|
|
|
|
OAUTH2_PROVIDER_NAME=github
|
2020-04-30 11:14:46 +02:00
|
|
|
OAUTH2_PROVIDER=https://github.com
|
2020-04-28 13:11:49 +02:00
|
|
|
OAUTH2_CLIENT_ID=
|
|
|
|
OAUTH2_CLIENT_SECRET=
|
2020-04-30 11:14:46 +02:00
|
|
|
OAUTH2_REDIRECT_URL=https://wg-gen-web-demo.127-0-0-1.fr
|
2020-04-28 13:11:49 +02:00
|
|
|
|
|
|
|
# set provider name to fake to disable auth, also the default
|
|
|
|
OAUTH2_PROVIDER_NAME=fake
|