igniterealtime / openfire-httpFileUpload-plugin

Adds XEP-0363 functionality to Openfire that allows compliant clients to exchange files
Apache License 2.0
9 stars 10 forks source link

Announced URL configuration should be cluster-node specific #40

Closed guusdk closed 2 years ago

guusdk commented 2 years ago

This plugin will announce URLs on which data is to accessed via HTTP. By default, this will default to the server's hostname (as configured in Openfire), and the BOSH port on which the servlet in this plugin binds.

Through the magic of networking, load balancing and proxies, it is often desirable to modify the URLs that are sent to the clients: for example, to include a different hostname. This plugin facilitates that through various configuration properties.

In Openfire, a property value, by default, is saved in the database, which is shared by all servers in a cluster. This means that a value is used by all cluster nodes. For the HTTP interaction implemented in this plugin, this can be undesirable: it can be desirable to have a unique URL for each cluster node (that is not the default URL).

To facilitate this, the plugin should be configurable in a manner that is specific to a cluster node.

guusdk commented 2 years ago

Having URL configuration be cluster-node specific could be an optional way to configure things, that maybe overrides cluster-wide configuration.

guusdk commented 2 years ago

When PUT/GET requests refer to individual cluster nodes, then there might not be a need to store data server-sided in a location that is accessible by all servers.