wg-gen-web/.env

46 lines
1.2 KiB
Bash
Raw Normal View History

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=https://github.com
2020-04-28 11:11:49 +00:00
OAUTH2_CLIENT_ID=
OAUTH2_CLIENT_SECRET=
OAUTH2_REDIRECT_URL=https://wg-gen-web-demo.127-0-0-1.fr
2020-04-28 11:11:49 +00:00
# set provider name to fake to disable auth, also the default
OAUTH2_PROVIDER_NAME=fake
# https://github.com/jamescun/wg-api integration, user and password (basic auth) are optional
2020-10-06 16:58:34 +00:00
WG_STATS_API=
WG_STATS_API_USER=
WG_STATS_API_PASS=