Page MenuHomeMiraheze

Share image files between kb.nena.org and ndgkb.nena.org.
Open, NormalPublic

Description

After asking about $wgForeignFileRepos as a method of sharing image files between two sites, Labster suggested: We do support setting custom values for wg variables, you can make a pull request on GitHub in miraheze/mw-config.

I've not done this before and don't know the desired values for the elements in $wgForeignFileRepos. So, I need assistance. The requirement is relatively simple. Upload images to kb.nena.org and be able to use them there and in ndgkb.nena.org (private).

Is $wgForeignFileRepos the best approach? Can Miraheze set it up?

Event Timeline

PixDeVl triaged this task as Normal priority.Feb 21 2024, 12:15
Universal_Omega claimed this task.
Universal_Omega subscribed.

This can be done in Special:ManageWiki/settings using the configs, $wmgSharedUploadBaseUrl, $wmgSharedUploadClientDBname, $wmgSharedUploadDBname, and $wmgEnableSharedUploads.

Trying Universal_Omega's suggestion -
After making these setting changes, I could not see all of the files on kb.nena.org from ndgkb.nena.org. Should all existing files be visible?

kb.nena.org (public)
$wmgSharedUploadClientDBname: ndgwiki

ndgkb.nena.org (private)
$wmgSharedUploadBaseUrl: kb.nena.org
$wmgSharedUploadDBname: nenawikiwiki
$wmgEnableSharedUploads: (enabled)