~muirrum/gompei-verification

a2e61c5aa1c5942f24da78578b2d820f9e5814ba — Cara Salter 5 months ago a2770e6
web: Allow customization of listen port

Signed-off-by: Cara Salter <cara@devcara.com>
2 files changed, 2 insertions(+), 1 deletions(-)

M README.md
M main.go
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))
}