Commit Graph

174 Commits (f862341997e7177660579580c3f82315099f9168)

Author SHA1 Message Date
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
Curid 9684629549 Add disable option to web-root
Closes #238
2022-05-13 17:08:07 +00:00
Philipp Heckel a2825880bc macOS server support, this is just to support iOS development, not for prod 2022-05-11 13:47:41 -04:00
Philipp Heckel fe96110e6b macOS universal binaries, install instructions for Windows and macOS 2022-05-10 22:10:38 -04:00
Philipp Heckel 6d601ad141 macOS 2022-05-09 21:25:00 -04:00
Philipp Heckel 613348d37e Continued work on Windows CLI 2022-05-09 16:22:52 -04:00
Philipp Heckel 7d473488de Working Windows build 2022-05-09 11:03:40 -04:00
Philipp Heckel 712c292183 More docs 2022-04-20 16:31:25 -04:00
Philipp Heckel f4e8ebc053 Remove urfave/cli workaround 2022-03-16 14:50:00 -04:00
Philipp Heckel d0bbda555f Add Android WebSockets deprecation, remove 'ntfy serve' deprecation 2022-03-13 22:16:48 -04:00
Philipp Heckel c5ce51f242 Add --web-root switch 2022-03-05 21:28:25 -05:00
lrabane b89c18e83d Add support for auth in client config 2022-02-17 20:38:33 +01:00
lrabane f4f5edb230 Add auth support for subscribing 2022-02-17 19:13:21 +01:00
Philipp Heckel 2ad0802b65 Rate limit exemption; relates to #144 2022-02-14 16:09:59 -05:00
Philipp Heckel a320093cb8 Bump version 2022-02-03 22:57:16 -05:00
Philipp Heckel 3902599c52 More tests; enough! 2022-02-03 22:26:22 -05:00
Philipp Heckel 4972407145 More polishing, more docs; the only thing left are tests for access.go 2022-02-03 20:20:50 -05:00
Philipp Heckel d714af43c9 More docs, more tests, more docs 2022-02-03 20:07:23 -05:00
Philipp Heckel 29c2fc5472 CLI tests for 'ntfy user' 2022-02-03 16:10:15 -05:00
Philipp Heckel 0ad85262c1 More docs; this will never end 2022-02-02 19:26:17 -05:00
Philipp Heckel 1552d8103e More docs docs docs 2022-02-01 23:39:57 -05:00
Philipp Heckel 5cf92c55c6 Docs and minor improvements to "ntfy access" 2022-02-01 16:40:33 -05:00
Philipp Heckel 198e2cfd90 Do not forward messages to Firebase if topic is not world-readable 2022-01-31 19:33:22 -05:00
Philipp Heckel 936e95fd9e Rename Topic to TopicPattern in Grant 2022-01-31 11:47:30 -05:00
Philipp Heckel 26dde0f286 Fix test 2022-01-25 22:04:54 -05:00
Philipp Heckel 460162737a More auth 2022-01-24 00:54:28 -05:00
Philipp Heckel 393f95aeac Auth CLI, continued 2022-01-23 23:02:39 -05:00
Philipp Heckel 03a4e3e8e9 More CLI for access control 2022-01-23 15:30:30 -05:00
Philipp Heckel 243d549975 Command help 2022-01-23 01:00:38 -05:00
Philipp Heckel e309775ac1 More auth CLi 2022-01-23 00:54:18 -05:00
Philipp Heckel 1287594505 Simplify tables 2022-01-22 23:01:20 -05:00
Philipp Heckel aab705f4a4 Fix baseURL check 2022-01-21 14:17:59 -05:00
Philipp Heckel 9fac75b831 Check base URL format 2022-01-20 13:20:04 -05:00
Philipp Heckel 707c58a120 Do not print ugly WS error; tests 2022-01-15 22:33:35 -05:00
Philipp Heckel b079cb99a4 Merge branch 'main' into unix-socket 2022-01-14 20:16:12 -05:00
Philipp Heckel 034c81288c Docs docs docs 2022-01-13 15:17:30 -05:00
Philipp Heckel 762333c28f Docs docs docs 2022-01-13 00:08:26 -05:00
Philipp Heckel 38b28f9bf4 CLI; docs docs docs 2022-01-12 21:24:48 -05:00
Philipp Heckel aa94410308 Daily traffic limit 2022-01-12 18:52:07 -05:00
Philipp Heckel 0b0595384e Listen on Unix socket 2022-01-10 16:28:13 -05:00
Philipp Heckel 289a6fdd0f Add attachment expiry option 2022-01-10 15:36:12 -05:00
Philipp Heckel c45a28e6af Attachments limits; working visitor limit 2022-01-07 14:49:28 +01:00
Philipp Heckel 5eca20469f Attachment size limit 2022-01-06 01:04:56 +01:00
Philipp Heckel 24eb27d41c Merge branch 'main' into attachments 2022-01-05 00:25:49 +01:00
Philipp Heckel 7a7e7ca359 Add docs for click action 2022-01-05 00:11:36 +01:00
Philipp Heckel 38788bb2e9 WIP: attachments 2022-01-04 00:55:08 +01:00
Philipp Heckel eb5b86ffe2 WIP: Attachments 2022-01-02 23:56:12 +01:00
Philipp Heckel dac88391c1 Docs docs docs 2021-12-28 17:36:12 +01:00
Philipp Heckel 7cfe909644 CLI arguments 2021-12-27 22:27:01 +01:00
Philipp Heckel 7eaa92cb20 WIP 2021-12-27 16:39:28 +01:00
Philipp Heckel 3bc8ff0104 Docs 2021-12-25 00:57:02 +01:00
Philipp Heckel 11b5ac49c0 Fully working email feature 2021-12-25 00:13:09 +01:00
Philipp Heckel f553cdb282 Continued e-mail support 2021-12-24 15:01:29 +01:00
Philipp Heckel 7280ae1ebc Email rate limiting + tests 2021-12-24 00:03:04 +01:00
Philipp Heckel 873c57b3d8 Send emails 2021-12-23 21:04:17 +01:00
Philipp Heckel 6779d9dd1f Add NTFY_RAW 2021-12-23 00:16:28 +01:00