Switch to 'per server' storage for HTTP File Upload

This replaces functionality added in an earlier commit, that configured Openfire to use a shared volume to store uploaded content, and expose that through the load balancer.

Instead, each Openfire server will now store its own data, and exposes it through a distinct URL. This depends on the fix for issue https://github.com/igniterealtime/openfire-httpFileUpload-plugin/issues/40
pull/55/head
Guus der Kinderen 2022-11-15 17:10:31 +01:00
parent 7fbae4169f
commit cafc07d1c6
5 changed files with 27 additions and 6 deletions

View File

@ -42,7 +42,6 @@ services:
- ./_data/xmpp/1/conf:/var/lib/openfire/conf
- ./_data/plugins:/opt/plugins
- ../_common/wait-for-it.sh:/wait-for-it.sh
- ./_data/shared-httpfileupload-repo:/mnt/shared-httpfileupload-repo
command: ["/wait-for-it.sh", "-s", "db:5432", "--", "/sbin/entrypoint.sh"]
networks:
openfire-clustered-net:
@ -69,7 +68,6 @@ services:
- ./_data/xmpp/2/conf:/var/lib/openfire/conf
- ./_data/plugins:/opt/plugins
- ../_common/wait-for-it.sh:/wait-for-it.sh
- ./_data/shared-httpfileupload-repo:/mnt/shared-httpfileupload-repo
command: ["/wait-for-it.sh", "-s", "db:5432", "--", "/sbin/entrypoint.sh"]
networks:
openfire-clustered-net:
@ -96,7 +94,6 @@ services:
- ./_data/xmpp/3/conf:/var/lib/openfire/conf
- ./_data/plugins:/opt/plugins
- ../_common/wait-for-it.sh:/wait-for-it.sh
- ./_data/shared-httpfileupload-repo:/mnt/shared-httpfileupload-repo
command: ["/wait-for-it.sh", "-s", "db:5432", "--", "/sbin/entrypoint.sh"]
networks:
openfire-clustered-net:

View File

@ -723,9 +723,6 @@ provider.securityAudit.className org.jivesoftware.openfire.security.DefaultSecur
provider.user.className org.jivesoftware.openfire.user.DefaultUserProvider 0 \N
passwordKey YJ1nKWyrMeGvTKu 0 \N
update.lastCheck 1605956807055 0 \N
plugin.httpfileupload.fileRepo /mnt/shared-httpfileupload-repo 0 \N
plugin.httpfileupload.announcedWebPort 57070 0 \N
plugin.httpfileupload.announcedWebProtocol http 0 \N
\.

View File

@ -64,4 +64,13 @@
<clustering>
<enabled>true</enabled>
</clustering>
<plugin>
<httpfileupload>
<serverspecific>
<announcedWebProtocol>http</announcedWebProtocol>
<announcedWebHost>localhost</announcedWebHost>
<announcedWebPort>7071</announcedWebPort>
</serverspecific>
</httpfileupload>
</plugin>
</jive>

View File

@ -64,4 +64,13 @@
<clustering>
<enabled>true</enabled>
</clustering>
<plugin>
<httpfileupload>
<serverspecific>
<announcedWebProtocol>http</announcedWebProtocol>
<announcedWebHost>localhost</announcedWebHost>
<announcedWebPort>7072</announcedWebPort>
</serverspecific>
</httpfileupload>
</plugin>
</jive>

View File

@ -64,4 +64,13 @@
<clustering>
<enabled>true</enabled>
</clustering>
<plugin>
<httpfileupload>
<serverspecific>
<announcedWebProtocol>http</announcedWebProtocol>
<announcedWebHost>localhost</announcedWebHost>
<announcedWebPort>7073</announcedWebPort>
</serverspecific>
</httpfileupload>
</plugin>
</jive>