Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ MATOMO_PASSWORD=
# For production (optional for others)
UPDATE_EFO_BOT_PASSWORD=
MW_NCBI_TAXONOMY_API_KEY=
MW_NCBI_TAXONOMY_API_URL=
MW_RECAPTCHA_SITE_KEY=
MW_RECAPTCHA_SECRET_KEY=
RESTIC_PASSWORD=
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ If changed, ensure corresponding database passwords (`MW_DB_PASS` in the web sec
- `MW_LOAD_EXTENSIONS` provided as comma-separated list of MediaWiki extensions to load during container startup
- `MW_LOAD_SKINS` comma-separated list of MediaWiki skins available for use
- `MW_SEARCH_TYPE` configures the search backend (typically `CirrusSearch`)
- `MW_NCBI_TAXONOMY_API_URL` optionally sets custom URL for the NCBI API endpoint
- `MW_NCBI_TAXONOMY_API_KEY`, `MW_RECAPTCHA_SITE_KEY`, `MW_RECAPTCHA_SECRET_KEY` optional/requested third-party API keys
- `MW_ENABLE_SITEMAP_GENERATOR` enables sitemap generator script on production (`true/false`)

Expand Down
3 changes: 3 additions & 0 deletions _settings/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@

//wfLoadExtension( 'NCBITaxonomyLookup' );
$wgNCBITaxonomyLookupCacheTTL = 1296000; # 15 days
if ( getenv( 'MW_NCBI_TAXONOMY_API_URL' ) ) {
$wgNCBITaxonomyLookupApiURL = getenv( 'MW_NCBI_TAXONOMY_API_URL' );
}
$wgNCBITaxonomyApiKey = getenv( 'MW_NCBI_TAXONOMY_API_KEY' );
$wgNCBITaxonomyApiTimeout = 30;
$wgNCBITaxonomyLookupCacheRandomizeTTL = true;
Expand Down
1 change: 1 addition & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ services:
- MW_DB_NAME=mediawiki
- MW_DB_PASS=${MYSQL_ROOT_PASSWORD?Variable MYSQL_ROOT_PASSWORD not set}
- MW_NCBI_TAXONOMY_API_KEY=${MW_NCBI_TAXONOMY_API_KEY:-}
- MW_NCBI_TAXONOMY_API_URL
- MW_RECAPTCHA_SITE_KEY=${MW_RECAPTCHA_SITE_KEY:-}
- MW_RECAPTCHA_SECRET_KEY=${MW_RECAPTCHA_SECRET_KEY:-}
- MW_ADMIN_USER=admin
Expand Down