Commit Graph

40 Commits

Author SHA1 Message Date
genofire 612d577b21 fix validation of notifcation by sender/from address
Reviewed-on: genofire/unified-push-xmpp#19
2021-09-21 11:34:56 +02:00
karmanyaahm 8eb9ba32b5 Add a not condition to an if statement 2021-09-21 05:24:30 +02:00
genofire 4b06d6886a Merge pull request 'also use xmpp JID as part of settings persistence' (#17) from karmanyaahm/unified-push-xmpp:smth into main
Reviewed-on: genofire/unified-push-xmpp#17
2021-09-17 18:09:46 +02:00
Karmanyaah Malhotra 656c3237dd add other part of conn.Settings check 2021-09-17 10:03:53 -05:00
Karmanyaah Malhotra 5e0ec90bf4 also use xmpp JID as part of settings persistence 2021-09-16 20:21:43 -05:00
genofire 6d154bfdb1 distributor: fix - dropreplace in go.mod 2021-09-16 16:51:54 +02:00
genofire db0b61ab46 distributor: register again, if gateway changed (configurable) 2021-09-16 15:58:30 +02:00
genofire 9c4919007a distributor: use storage always and keep gateway in storage connection settings 2021-09-16 15:36:51 +02:00
Geno fb190d634b depends: update mellium.im/xmpp to main 2021-09-16 14:36:33 +02:00
Geno 2b8b76d254 ci: add test and woodpicker/droneCI support 2021-09-16 14:36:26 +02:00
genofire 498cf67f14 distributor: fix register if storage was successful 2021-09-16 04:07:49 +02:00
Geno bca172eff1 distributor: fix config toml storage_path 2021-09-16 03:14:57 +02:00
Geno 929ed83c28 distributor: improve storage handling after fixes 2021-09-16 03:14:49 +02:00
Geno 057f8045ed docs: fix typos 2021-09-16 01:04:43 +02:00
Geno 42e8289f2f distributor: timeout for XMPP connection setup from 1s to 10s 2021-09-15 20:47:29 +02:00
Geno 47b46549ee distributor: timeout XMPP requests 2021-09-15 19:06:11 +02:00
Geno 889563b8b2 distributor: make loglevel configurable 2021-09-15 18:54:23 +02:00
Geno caf4ccb205 distributor: drop gateway on default config 2021-09-15 18:44:07 +02:00
Geno e2562c93c2 distributor: use service discovery to check gateway (and fallback to demo)
fix #12
2021-09-15 18:42:08 +02:00
Geno 63aa921252 distributor: check server for msgoffline support XEP-0160
with discovery XEP-0030 ;)

wip #8
2021-09-15 17:04:55 +02:00
Geno 29cf678106 gateway: add disco feature and identity
fix #4
2021-09-15 15:49:13 +02:00
Geno f21db8eaa8 distributor: generate example config file if not exists 2021-09-15 13:28:16 +02:00
Geno 86241538cf docs: gateway 2021-09-15 13:17:53 +02:00
Geno 33b1c21c4e docs: token definition 2021-09-14 22:14:25 +02:00
Geno 8fda0be59c distributor: storage and file handling
fix #11 #2
2021-09-14 21:51:26 +02:00
Geno f24a76a62e gateway: fix test and depends 2021-09-14 20:22:49 +02:00
Geno 4a88e1d4a7 docs: first readme message
wip #9
2021-09-14 11:36:12 +02:00
Geno 05eaff3e20 distributor: improve logging 2021-09-14 09:49:59 +02:00
Geno 52fa083eae gateway: improve logging to be more privat 2021-09-14 09:31:45 +02:00
Geno 748e4ca5d7 be sure TokenReadClosed always closed
also if decode of response does not work
2021-09-14 09:14:11 +02:00
karmanyaahm 7647fc1631 fix deadlock on distributor register (#7)
Closes #6

I'm not sure if this is the correct solution according to the library, but it *is* one that works.

Co-authored-by: Karmanyaah Malhotra <karmanyaahm@gmail.com>
Reviewed-on: genofire/unified-push-xmpp#7
Co-authored-by: karmanyaahm <karmanyaahm@noreply.%(DOMAIN)s>
Co-committed-by: karmanyaahm <karmanyaahm@noreply.%(DOMAIN)s>
2021-09-14 08:09:03 +02:00
Geno 88c59ac00b implement JWT for anti spam
fix #1
2021-09-14 01:33:15 +02:00
Geno 531c267473 alpha 2021-09-12 12:14:09 +02:00
Geno be6e6c4154 xmpp works with components (distribute Encoding hangs) - dirty without Webserver, and nice tokens 2021-09-12 00:31:03 +02:00
Geno 950a147042 xmpp works - sadly with new generated ressource on gateway (we need an component) 2021-09-11 17:16:43 +02:00
Geno 7057859bfe planed xmpp messages 2021-09-11 00:53:13 +02:00
Geno 1eecc83e49 first xmpp tries 2021-09-09 23:12:29 +02:00
Geno ffbc834ada dbus replaced by unifiedpush.org/go/np2p_dbus/distributor 2021-09-09 18:31:26 +02:00
Geno 49e2b06b00 init distributor dbus 2021-09-05 19:20:27 +02:00
Geno f7ccd08b2e init 2021-09-05 13:31:06 +02:00