Skip to content

[pull] master from benjojo:master - #4

Open
pull[bot] wants to merge 32 commits into
funkypenguin:masterfrom
benjojo:master
Open

[pull] master from benjojo:master#4
pull[bot] wants to merge 32 commits into
funkypenguin:masterfrom
benjojo:master

Conversation

@pull

@pull pull Bot commented Aug 10, 2021

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

benjojo and others added 29 commits September 19, 2018 13:29
Fix error checking, add Dockerfile
I generally run these bins as systemd services, but you want to go all galaxy brain yourselves, here is the convenient option
Send alerts in Discord's rich embed format
As we default to 127.0.0.1 in the code
Add listen.address as a CLI parameter and check WebHook
and if it does not match the discord regex it prints a warning
but lets things go ahead, this is handy for debugging and
canary subdomains of discord.

H/T to Tom Bowditch who discovered the latter part
Because listen.address was hard coded in the Docker file, it would override any ENVVAR set in any
other docker file, this made it hard to change the default listening port to anything else. By switching
to `ENV LISTEN_ADDRESS=0.0.0.0:9094` people should be able to override the address that
the docker file listens on much easier.

This closes #12 
This closes #11
Removed GOARCH parameter to be able to build arm images
This is to assist debugging #18 - But should be harmless to everyone
else
idk it stopped working with:

---> Running in 74be85315501
1mgo: cannot find main module, but found .git/config in /go/src/mypackage/myapp
to create a module there, run:
go mod init

Removing intermediate container 74be85315501
The command '/bin/sh -c go get -d -v' returned a non-zero code: 1

---
Since people keep doing it.

See: #18
See: #13
See: #14

and a handful of discord DM's
This fixes #23

Since if listening failes on http.ListenAndServe then it would
simply hit the end of main() and thus exit with the status code
of 0, systemd or other task orchestration systems may not restart
on the count that the program did not technically signal it failed.
@pull pull Bot added the ⤵️ pull label Aug 10, 2021
@pull pull Bot added the merge-conflict Resolve conflicts manually label Aug 10, 2021
benjojo and others added 3 commits September 28, 2021 14:59
Account for discord webhook IDs with length 19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⤵️ pull merge-conflict Resolve conflicts manually

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants