World of Warcraft utilities or something. I basically just get bored and fill my time by working on random projects. This is one of them.
addr
sets the string address to bind to- defaults to
:9090
- defaults to
denv
is a boolean, when true attempts to read a.env
file in running directory- defaults to
false
- defaults to
There are a few environment variables that we work with. These can be set in your environment or through a .env
file
and set auto-magically with the -denv
runtime flag.
We'll include an example .env
file below, followed by information regarding each of the variables with links for
obtaining any relevant access credentials.
# BattleNet
BNET_CLIENT_ID="<id>"
BNET_CLIENT_SECRET="<secret>"
BNET_REDIRECT_URL="<callback_url>"
# WarcraftLogs
WL_CLIENT_ID="<id>"
WL_CLIENT_SECRET="<secret>"
WL_REDIRECT_URL="<callback_url>"
# Session
SESSION_KEY="<your_session_key>"
# Redis
REDIS_URL="<redis_url>"
Otherwise, referred to as BNET is Blizzard's API for all things Blizzard (e.g. World of Warcraft). We require an API Client which can be managed here.
We redirect to the following OAuth2 URLs:
https://amashan.com/api/auth/battlenet/callback
http://localhost:9090/api/auth/battlenet/callback
Otherwise, referred to as WL is WarcraftLog's API for all things log and parse related. We require an API client which can be managed here.
We redirect to the following OAuth2 URLs:
https://amashan.com/api/auth/warcraftlogs/callback
http://localhost:9090/api/auth/warcraftlogs/callback
This is the value that will be used for the CookieStore
.
This is the value used to connect with redis.ParseURL(...)
.