1
0
Fork 0
Commit graph

59 commits

Author SHA1 Message Date
4227eadcd6 Merge pull request 'chore(deps): update nixos/nix docker tag to v2.24.6' (#11) from renovate/nixos-nix-2.x into main
Reviewed-on: tommy/alertmanager-ntfy#11
2024-09-12 16:41:37 +00:00
8da4fec252 Merge pull request 'chore(deps): update golang.org/x/exp digest to 701f63a' (#10) from renovate/golang.org-x-exp-digest into main
Reviewed-on: tommy/alertmanager-ntfy#10
2024-09-12 16:41:32 +00:00
renovate[bot]
02a7e5ecb7 chore(deps): update nixos/nix docker tag to v2.24.6 2024-09-11 01:01:20 +00:00
renovate[bot]
e0c517385c chore(deps): update golang.org/x/exp digest to 701f63a 2024-09-10 01:00:55 +00:00
a87bc989fd
chore: add more building tools and scripts 2024-09-09 21:27:32 +02:00
fe510445c8
feat: add severityMapper 2024-09-09 21:27:32 +02:00
d69a0d7bd0
Update .forgejo/workflows/build.yaml.inactive 2024-09-08 15:37:58 +00:00
bb3a9a766f Merge pull request 'chore(deps): update module github.com/prometheus/common to v0.59.1' (#8) from renovate/github.com-prometheus-common-0.x into main
Reviewed-on: tommy/alertmanager-ntfy#8
2024-09-07 13:29:10 +00:00
16d0ecac1b Merge pull request 'chore(deps): update dependency go to v1.23.1' (#9) from renovate/go-1.x into main
Reviewed-on: tommy/alertmanager-ntfy#9
2024-09-07 13:28:54 +00:00
renovate[bot]
416da9aaeb chore(deps): update module github.com/prometheus/common to v0.59.1 2024-09-06 01:01:14 +00:00
renovate[bot]
1a06dce3a2 chore(deps): update dependency go to v1.23.1 2024-09-06 01:01:01 +00:00
b8142aa1bc Merge pull request 'chore(deps): update dependency go to v1.23.0' (#6) from renovate/go-1.x into main
Reviewed-on: tommy/alertmanager-ntfy#6
2024-08-14 08:03:08 +00:00
renovate[bot]
49c1b84566 chore(deps): update dependency go to v1.23.0 2024-08-14 01:01:10 +00:00
ee6c446699 Merge pull request 'chore(deps): update module github.com/prometheus/common to v0.55.0' (#4) from renovate/github.com-prometheus-common-0.x into main
Reviewed-on: tommy/alertmanager-ntfy#4
2024-08-13 18:47:18 +00:00
e7a5a55d40 Merge pull request 'chore(deps): update node docker tag to v22' (#5) from renovate/node-22.x into main
Reviewed-on: tommy/alertmanager-ntfy#5
2024-08-13 18:47:10 +00:00
renovate[bot]
bc394c1a31 chore(deps): update node docker tag to v22 2024-08-13 01:01:10 +00:00
renovate[bot]
6137192b80 chore(deps): update module github.com/prometheus/common to v0.55.0 2024-08-13 01:01:07 +00:00
ceaf7e96e9
chore: cachix seems faster for nix installs in workflows 2024-08-12 17:04:13 +00:00
d2c1386aff
Update .forgejo/workflows/build.yaml 2024-08-12 16:59:23 +00:00
8b30150098 Merge pull request 'chore(deps): update module github.com/prometheus/alertmanager to v0.27.0' (#3) from renovate/github.com-prometheus-alertmanager-0.x into main
Reviewed-on: tommy/alertmanager-ntfy#3
2024-08-12 06:49:29 +00:00
renovate[bot]
d68110f06c chore(deps): update module github.com/prometheus/alertmanager to v0.27.0 2024-08-12 01:01:04 +00:00
0adff1b6e4 Merge pull request 'Configure Renovate' (#1) from renovate/configure into main
Reviewed-on: tommy/alertmanager-ntfy#1
2024-08-11 20:16:22 +00:00
cd64a6fd6a
Update .forgejo/workflows/build.yaml 2024-08-11 19:45:19 +00:00
de6a7339d0
Update .forgejo/workflows/build.yaml 2024-08-11 19:43:54 +00:00
79b3f805c5
Update .forgejo/workflows/build.yaml 2024-08-11 19:40:27 +00:00
dd445bf847
chore: update vendorhash and package name for go build 2024-08-11 21:38:00 +02:00
e38530642d
fix: remove inherit since it fails build 2024-08-11 21:38:00 +02:00
673ce91757
Update .forgejo/workflows/build.yaml 2024-08-11 19:37:23 +00:00
0bba32a2e3
Update .forgejo/workflows/build.yaml 2024-08-11 19:31:36 +00:00
013de682e4
Update .forgejo/workflows/build.yaml 2024-08-11 19:31:21 +00:00
053b244c5d
testing: nix in workflow 2024-08-11 21:29:55 +02:00
3cd5574639
testing: nix in workflow 2024-08-11 21:29:26 +02:00
2c1014f5c2
testing: nix in workflow 2024-08-11 21:28:10 +02:00
6d2bad2def
testing: nix in workflow 2024-08-11 21:26:56 +02:00
eb4429bc17
chore: add latest changes and a build 2024-08-11 21:02:39 +02:00
renovate[bot]
d9f4478cf9 Add renovate.json 2024-08-08 01:00:55 +00:00
Pablo Ovelleiro Corral
c669b87012
Merge pull request #7 from jaseemabid/jabid/url-parse
Validate ntfy.sh URL before use
2024-04-02 11:30:37 +02:00
Jaseem Abid
631eeb0816 Validate ntfy.sh URL before use
I had a couple of panics due to invalid URL, which could have been an
error message during startup.

Example:

    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: 2024/04/01 17:33:49 Received valid hook from 127.0.0.1:43130
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: 2024/04/01 17:33:49 Processing alert: {firing map[alertname:Target Down instance:devkit.local:80 job:esphome severity:high] map[description:The target is not reachable summary:Target is down] 2024->
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: 2024/04/01 17:33:49 http: panic serving 127.0.0.1:43130: runtime error: invalid memory address or nil pointer dereference
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: goroutine 1013 [running]:
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: net/http.(*conn).serve.func1()
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]:         /usr/lib/go/src/net/http/server.go:1868 +0xb9
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: panic({0x840200?, 0xd01360?})
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]:         /usr/lib/go/src/runtime/panic.go:920 +0x270
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: main.WebhookHandler({0xa1d5f0, 0xc00038e000}, 0xc0001b0000)
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]:         /home/j/src/alertmanager-ntfy/main.go:45 +0xbf2
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: net/http.HandlerFunc.ServeHTTP(0x10?, {0xa1d5f0?, 0xc00038e000?}, 0xc0004020ac?)
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]:         /usr/lib/go/src/net/http/server.go:2136 +0x29
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: net/http.(*ServeMux).ServeHTTP(0x411f45?, {0xa1d5f0, 0xc00038e000}, 0xc0001b0000)
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]:         /usr/lib/go/src/net/http/server.go:2514 +0x142
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: net/http.serverHandler.ServeHTTP({0xa1c0c0?}, {0xa1d5f0?, 0xc00038e000?}, 0x6?)
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]:         /usr/lib/go/src/net/http/server.go:2938 +0x8e
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: net/http.(*conn).serve(0xc0000d21b0, {0xa1e1f0, 0xc00027a600})
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]:         /usr/lib/go/src/net/http/server.go:2009 +0x5f4
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]: created by net/http.(*Server).Serve in goroutine 1
    Apr 01 17:33:49 nyx.jabid.in alertmanager-ntfy[878013]:         /usr/lib/go/src/net/http/server.go:3086 +0x5cb
2024-04-01 19:21:37 +01:00
Pablo Ovelleiro Corral
fca24b84f2
Merge pull request #6 from danjl1100/allow-empty-user
allow empty username in case of access tokens in Basic Auth
2024-03-24 21:31:45 +01:00
Daniel Lambert
2ce561304a allow empty username in case of access tokens in Basic Auth 2024-03-23 21:15:31 -05:00
Pablo Ovelleiro Corral
9aa539bb4f
Merge branch 'main' of github.com:pinpox/alertmanager-ntfy 2024-02-28 11:02:11 +01:00
Pablo Ovelleiro Corral
aa99149afc
flake.lock: Update
Flake lock file updates:

• Updated input 'flake-compat':
    'github:edolstra/flake-compat/b4a34015c698c7793d592d66adbab377907a2be8' (2022-04-19)
  → 'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33' (2023-10-04)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/6ee9ebb6b1ee695d2cacc4faa053a7b9baa76817' (2022-10-29)
  → 'github:numtide/flake-utils/1ef2e671c3b0c19053962c07dbda38332dcebf26' (2024-01-15)
• Added input 'flake-utils/systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/d40fea9aeb8840fea0d377baa4b38e39b9582458' (2022-10-31)
  → 'github:nixos/nixpkgs/13aff9b34cc32e59d35c62ac9356e4a41198a538' (2024-02-26)
2024-02-28 11:02:07 +01:00
Pablo Ovelleiro Corral
1c5d171b97
Merge pull request #5 from merspieler/main
Fix things up
2024-02-05 08:53:34 +01:00
merspieler
37354956d2
Another case of deprecated use fixed 2024-02-05 00:02:04 +01:00
merspieler
0f0c2ed224
Fix readme 2024-02-05 00:00:03 +01:00
merspieler
b25d625177
Fix deprecation warning 2024-02-04 23:51:34 +01:00
merspieler
aaddfe7507
Make the config name actually how it is in the readme 2024-02-04 23:51:05 +01:00
Pablo Ovelleiro Corral
23fa2327be
Merge pull request #4 from merspieler/main 2024-01-26 07:01:12 +01:00
merspieler
d6ef79c244
Fix typo in readme 2024-01-26 02:31:33 +01:00
Pablo Ovelleiro Corral
48cf817171
Merge pull request #3 from pinpox/add-license-1
Create LICENCE
2023-03-01 22:14:35 +01:00