Refactor
This commit is contained in:
parent
697747ade1
commit
774ca114dd
@ -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=
|
||||
|
||||
|
4
main.go
4
main.go
@ -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())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user