This commit is contained in:
Illya Marchenko 2024-03-27 22:36:10 +02:00
parent 697747ade1
commit 774ca114dd
Signed by: stuzer05
GPG Key ID: A6ABAAA9268F9F4F
2 changed files with 4 additions and 2 deletions

@ -1,5 +1,7 @@
CONFIG_PATH=/opt/bin/monobank-firefly3-bot/config.json
LISTEN=:8080
FIREFLY3_API_URL=https://firefly3.stuzer.link/api
FIREFLY3_TOKEN=

@ -33,8 +33,8 @@ func main() {
http.HandleFunc("/webhook", handleWebhook)
// listen server
fmt.Println("Webhook server listening on :3021") // @todo make env
err = http.ListenAndServe(":3021", nil)
fmt.Println("Webhook server listening on " + os.Getenv("LISTEN"))
err = http.ListenAndServe(os.Getenv("LISTEN"), nil)
if err != nil {
panic(err.Error())
}