tigase / tigase-server

(M) Highly optimized, extremely modular and very flexible XMPP/Jabber server
https://tigase.net
GNU Affero General Public License v3.0
322 stars 107 forks source link

PEPPlugin: what is the proper format of 'pubsub-component' config #70

Open DaveLomber opened 3 years ago

DaveLomber commented 3 years ago

I have a problem with…

For the PEPPlugin to work it requires to pass 'pubsub-component' config

https://github.com/tigase/tigase-server/blob/master/src/main/java/tigase/xmpp/impl/PepPlugin.java#L58

It's clear it should look something like this:

sess-man/plugins-conf/pep-simple/pubsub-component=...

The question is what's the proper format of value?

The pubs component is configured like this:

--comp-name-4 = pubsub
--comp-class-4 = tigase.pubsub.PubSubComponent

Details (please complete the following information):

woj-tek commented 3 years ago

You should not need to configure explicitly PubSub component address. However, proper PEP plugin is located in the tigase-pubsub repository.

Btw. you are linking to the latest sources and I would recommend using latest Tigase release: 8.1.0.

DaveLomber commented 3 years ago

Thanks @woj-tek

Is this one obsolete https://github.com/tigase/tigase-server/blob/master/src/main/java/tigase/xmpp/impl/PepPlugin.java#L58 ?

I see it requires to provide the 'pubsub-component' config. Can you just let me know what was the required format in past?

hantu85 commented 3 years ago

Mentioned PEP plugin is old and not used by default (most likely will be removed at some point). If you are using PubSub (as you should for PEP), you should use PepPlugin from PubSub which @woj-tek mentioned.

DaveLomber commented 3 years ago

I will definitely check the new PepPlugin from PubSub

The thing with an old one is that some time ago I adopted it in my project successful. And now I want to enable it again, but forgot about 'pubsub-component' config format.

woj-tek commented 3 years ago

There shouldn't be much difference between using those two plugins functionality wise.

As for the format - it should be just pubsub component jid, so most likely: pubsub.<vhost>