M README.md => README.md +1 -0
@@ 16,6 16,7 @@ Create a `.env` file with the following keys:
- `DISCORD_TOKEN` - the Discord bot token
- `BASE_URL` - the base public-facing URL, used to construct redirects
- `SUCCESS_URL` - the URL to redirect to on success
+- `LISTEN_PORT` - the HTTP port to bind the web server to
## Setup
1. Create an Azure "App Registration" in [the Azure Portal](https://portal.azure.com).
M main.go => main.go +1 -1
@@ 137,5 137,5 @@ func main() {
go bot.StartDiscordBot(verifyChan)
logoru.Info("Starting client")
- logoru.Critical(http.ListenAndServe(":3000", nil))
+ logoru.Critical(http.ListenAndServe(fmt.Sprintf(":%s", os.Getenv("LISTEN_PORT")), nil))
}