Commit graph

229 commits

Author SHA1 Message Date
binwiederhier 94f6d2d5b5 Rename flag 2023-03-03 20:23:18 -05:00
binwiederhier 1c4420bca8 EnableRateVisitor flag 2023-03-03 14:55:37 -05:00
Alexandre Oliveira 9d42ee9391 Fix publish command preferring default user instead of token auth
Closes #650
2023-03-03 17:49:18 +01:00
binwiederhier 90db1283dd Allow SMTP servers without auth 2023-03-02 20:25:13 -05:00
binwiederhier fe3a225f8f Add billing-contact config option 2023-02-28 14:38:31 -05:00
binwiederhier f862341997 Fix test, release notes 2023-02-28 11:57:49 -05:00
binwiederhier a3087047b6 Enhance some duration flags 2023-02-27 14:34:05 -05:00
binwiederhier 8215b66db3 Logging improvements, etc. 2023-02-25 20:23:22 -05:00
binwiederhier 2ac63c4327 Disable Stripe telemetry 2023-02-22 15:49:51 -05:00
binwiederhier ef9d6d9f6c Support for annual billing intervals 2023-02-21 22:44:30 -05:00
binwiederhier 6c51b7558a Fine tuning error messages, add --ignore-exists flag to tier/user command 2023-02-16 10:35:23 -05:00
binwiederhier 70aa384bc3 Docs for access tokens 2023-02-13 21:35:58 -05:00
binwiederhier d8dd4c92bf More RWLock. Jeff wins again 2023-02-09 20:49:45 -05:00
binwiederhier e6bb5f484c Self-review, round 2 2023-02-09 15:24:12 -05:00
binwiederhier bcb22d8d4c Added disallowed-topics 2023-02-09 08:32:51 -05:00
binwiederhier b37cf02a6e Code review (round 1) 2023-02-08 22:57:10 -05:00
binwiederhier e1a4a74905 Auth rate limiter 2023-02-08 15:20:44 -05:00
binwiederhier a32e8abc12 "ntfy tier" CLI command 2023-02-07 12:02:25 -05:00
binwiederhier e3b39f670f WIP tier CLI 2023-02-06 22:38:22 -05:00
binwiederhier 7cc8c81bd8 Continued logging work 2023-02-05 23:34:27 -05:00
binwiederhier 5d6051c490 Logging WIP 2023-02-04 21:26:01 -05:00
binwiederhier a6641980c2 WIP: Logging 2023-02-03 22:21:50 -05:00
binwiederhier b516f99394 Tokens test 2023-01-30 12:19:51 -05:00
binwiederhier 4ad1099e9f Fix staticcheck 2023-01-29 22:05:50 -05:00
binwiederhier d717bf39ac "ntfy token" CLI 2023-01-29 21:42:40 -05:00
binwiederhier e596834096 Add "last access" to access tokens 2023-01-28 20:29:06 -05:00
binwiederhier 000bf27c87 Speed up tests, hopefully fix races 2023-01-28 09:03:14 -05:00
binwiederhier c874a641df Rate limits make sense now! 2023-01-26 22:57:18 -05:00
binwiederhier 236254d907 Add bandwidth limit to tier; fix display name sync issues 2023-01-25 10:05:54 -05:00
binwiederhier 954d919361 Delayed deletion 2023-01-22 22:21:30 -05:00
binwiederhier 31a3bb7cd6 Payments webhook test, delete attachments/messages when reservations are removed, 2023-01-20 22:47:37 -05:00
binwiederhier f945fb4cdd A little polishing, make upgrade banner work when not logged in 2023-01-18 13:46:40 -05:00
binwiederhier 83de879894 publishSyncEvent, Stripe endpoint changes 2023-01-16 16:35:37 -05:00
binwiederhier 01fd4754f9 WIP: Stripe integration 2023-01-14 06:43:44 -05:00
binwiederhier 7007c0a0bd Docs 2023-01-12 12:04:18 -05:00
binwiederhier 7e528d9c10 Sync topic (begin), rename user fields 2023-01-09 21:53:21 -05:00
binwiederhier b27c608508 useContext work in JS 2023-01-09 20:37:13 -05:00
binwiederhier 3aba7404fc Tiers make sense for admins now 2023-01-09 15:40:46 -05:00
binwiederhier 60f1882bec Startup queries, foreign keys 2023-01-05 15:20:44 -05:00
binwiederhier 4b9d40464c Replace read/write flags with Permission 2023-01-02 21:12:42 -05:00
binwiederhier 1733323132 Introduce Reservation 2023-01-02 20:08:37 -05:00
binwiederhier 2267d27c9b User-owned ACL entries 2023-01-01 15:21:43 -05:00
binwiederhier d9722a9825 Fix almost all tests 2022-12-27 22:14:14 -05:00
binwiederhier d4c7ad4beb Rename auth package to user; add extendToken feature 2022-12-25 11:41:38 -05:00
binwiederhier c2f16f740b Stuff 2022-12-14 23:11:22 -05:00
Philipp Heckel fe11ed3ac7 Remove --env-topic flag from "ntfy publish" (as per deprecation) 2022-11-28 11:06:47 -05:00
Philipp Heckel 5b2fe66903 Fix test 2022-11-16 21:12:52 -05:00
Philipp Heckel ad860afb8b Polish async batching 2022-11-16 10:28:20 -05:00
Sandro Jäckel df9fe7f8d0
Allow reasding subscribe credentials from NTFY_USER env 2022-10-21 19:45:35 +02:00
Hunter Kehoe 85eb9160d8 ntfy pub: use default-user and default-password from client.yml
fixes #431
2022-10-09 08:34:23 -06:00
Hunter Kehoe ce392de0a8 allow empty password in client.yml
fixes #374
2022-10-09 07:50:37 -06:00
Philipp Heckel 16ad94441b Personal preference 2022-10-08 17:58:05 -04:00
Karmanyaah Malhotra bc5060b218 test new config parsing 2022-10-07 21:15:45 -05:00
Karmanyaah Malhotra 4edc625331 fix lint 2022-10-07 20:36:01 -05:00
Karmanyaah Malhotra 511d3f6aaf recommended fixes [2 of 2] 2022-10-07 16:24:11 -05:00
Karmanyaah Malhotra de2ca33700 recommended fixes [1 of 2] 2022-10-07 16:17:04 -05:00
Karmanyaah Malhotra c2382d29a1 refactor visitor IPs and allow exempting IP Ranges
Use netip.Addr instead of storing addresses as strings. This requires
conversions at the database level and in tests, but is more memory
efficient otherwise, and facilitates the following.

Parse rate limit exemptions as netip.Prefix. This allows storing IP
ranges in the exemption list. Regular IP addresses (entered explicitly
or resolved from hostnames) are IPV4/32, denoting a range of one
address.
2022-10-05 16:04:42 -05:00
Philipp Heckel 5014bba0b3 Replace interface{} 2022-10-01 16:31:48 -04:00
Philipp Heckel bddde5c637 Bump Go version, Generics whoooo 2022-10-01 15:50:48 -04:00
Philipp Heckel b15ecd785e Fix trailing slash issue for base-url 2022-10-01 15:23:14 -04:00
Philipp Heckel 419bfecd6f Reformatting, make update 2022-09-27 12:37:02 -04:00
Philipp Heckel ae1fb74ac6 Merge branch 'main' of github.com:binwiederhier/ntfy into icons 2022-09-10 23:22:48 -04:00
la-ninpre 2fb93b1eb7
cmd: add go1.18 build directives 2022-09-01 00:49:08 +03:00
la-ninpre e60e770419
cmd: unify unix-specific code 2022-08-31 23:26:43 +03:00
Philipp Heckel 4277d6e4a6 Remove unnecessary else branch 2022-08-18 21:04:30 -04:00
Hunter Kehoe 8956837443 add default-user, default-password, and default-command options to client.yml config 2022-07-31 13:12:38 -06:00
Hunter Kehoe 99886d7f66 change icon from object to string 2022-07-17 15:40:24 -06:00
Hunter Kehoe d519fd999b notification icons 2022-07-16 14:13:46 -06:00
Philipp Heckel bf8077626e Permissions of unix socket 2022-07-03 19:33:01 -04:00
Koro 89316487e3 Add socket mode command-line option. 2022-07-03 17:22:45 -04:00
Philipp Heckel 30c8d6b02b Fix auth_file not working for ntfy user command 2022-06-24 19:13:10 -04:00
Philipp Heckel 113900d3eb Cache startup queries 2022-06-23 11:02:45 -04:00
Philipp Heckel 26fda847ca Docs 2022-06-21 11:43:26 -04:00
Philipp Heckel a160da3ad9 Tests 2022-06-21 11:18:35 -04:00
Philipp Heckel 0080ea5a20 All --wait-cmd 2022-06-20 23:03:16 -04:00
Philipp Heckel fec4864771 done command 2022-06-20 21:57:54 -04:00
Philipp Heckel c40338c146 Merge branch 'main' into done 2022-06-20 20:34:00 -04:00
Philipp Heckel a7d8e69dfd Refine NTFY_PASSWORD logic 2022-06-20 16:03:39 -04:00
Philipp C. Heckel 5b68915fff
Merge pull request #327 from Kenix3/add_user_supports_envvar
Add user now supports reading password from an env var.
2022-06-20 15:40:23 -04:00
Kenix3 f3e5961892
Fixes envvar fetch in ntfy user add for password 2022-06-20 14:21:30 -04:00
Kenix 7de7e0de12 Adds missing colon assignment for username variable in ntfy user add command. 2022-06-20 13:26:13 -04:00
Kenix 727c6268b9 Updating order of variables ntfy user add command. 2022-06-20 13:25:31 -04:00
Kenix 50cd50cfdf Moves password stdin down to the original location. 2022-06-20 13:24:42 -04:00
Kenix 1265e69eee Changes user add to use a NTFY_PASSWORD env var rather than NTFY_USER. 2022-06-20 13:19:54 -04:00
Philipp Heckel 1226a7b70c ntfy publish --pid $PID ... 2022-06-20 10:56:45 -04:00
Philipp Heckel 30c2a67869 Disallow setting upstream-base-url to the same value as base-url 2022-06-19 21:33:17 -04:00
Kenix 3dec7efadb Add user now supports reading password from an env var. 2022-06-15 11:42:22 -04:00
Philipp Heckel e9f3edb76b WIP: Matrix 2022-06-13 22:07:30 -04:00
Philipp Heckel cf0f002bfa Add version number to ntfy serve output 2022-06-12 11:54:58 -04:00
Philipp Heckel e12995e218 Logging in subscribe and publish command 2022-06-02 11:59:22 -04:00
Philipp Heckel 5cc0b194d3 Add --trace and --no-log-dates; add docs 2022-06-02 10:50:05 -04:00
Philipp Heckel ab955d4d1c Logging 2022-06-01 16:57:35 -04:00
Philipp Heckel dc0e699fb5 WIP: Logging 2022-05-29 22:14:14 -04:00
Philipp Heckel 12b83828bd Docs 2022-05-28 20:20:46 -04:00
Philipp Heckel 96bb357435 Polish the poll_request stuff 2022-05-27 20:30:20 -04:00
Philipp Heckel 6a43c1a126 WIP: iOS poll_request forwarder 2022-05-27 07:55:57 -04:00
Philipp Heckel c33065151e Switch to build tags "noserver" instead of using _linux suffix 2022-05-21 09:46:49 -04:00
Philipp Heckel 60c5ccf34b Merge branch 'main' of github.com:binwiederhier/ntfy into macos-server 2022-05-20 15:59:12 -04:00
Philipp Heckel 91594faf28 Support for underscores in server.yml config options 2022-05-16 11:32:21 -04:00
Philipp Heckel c684a39191 Fine tuning 2022-05-13 14:42:25 -04:00