2020-04-28 11:11:49 +00:00
|
|
|
# IP address to listen to
|
2020-01-30 06:45:49 +00:00
|
|
|
SERVER=0.0.0.0
|
2020-04-28 11:11:49 +00:00
|
|
|
# port to bind
|
2020-01-30 06:45:49 +00:00
|
|
|
PORT=8080
|
2020-04-28 11:11:49 +00:00
|
|
|
# Gin framework release mode
|
2020-02-03 07:19:24 +00:00
|
|
|
GIN_MODE=release
|
2020-04-28 11:11:49 +00:00
|
|
|
# where to write all generated config files
|
2020-01-30 06:45:49 +00:00
|
|
|
WG_CONF_DIR=./wireguard
|
2020-04-28 11:11:49 +00:00
|
|
|
# WireGuard main config file name, generally <interface name>.conf
|
2020-01-30 06:45:49 +00:00
|
|
|
WG_INTERFACE_NAME=wg0.conf
|
2020-02-03 07:19:24 +00:00
|
|
|
|
2020-04-28 11:11:49 +00:00
|
|
|
# SMTP settings to send email to clients
|
2020-02-03 07:19:24 +00:00
|
|
|
SMTP_HOST=smtp.gmail.com
|
|
|
|
SMTP_PORT=587
|
|
|
|
SMTP_USERNAME=account@gmail.com
|
2020-04-28 11:11:49 +00: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
|
|
|
|
OAUTH2_PROVIDER=
|
|
|
|
OAUTH2_CLIENT_ID=
|
|
|
|
OAUTH2_CLIENT_SECRET=
|
|
|
|
OAUTH2_REDIRECT_URL=
|
|
|
|
|
|
|
|
# set provider name to fake to disable auth, also the default
|
|
|
|
OAUTH2_PROVIDER_NAME=fake
|