mirror of
https://github.com/Metastem/wikiless
synced 2024-12-06 19:16:58 +01:00
Update wikiless.config
This commit is contained in:
+7
-15
@@ -2,19 +2,11 @@ const config = {
|
||||
/**
|
||||
* Set these configs below to suite your environment.
|
||||
*/
|
||||
domain: process.env.DOMAIN || '127.0.0.1', // Or for example 'wikiless.org' or '127.0.0.1:1337'. Remember to add port here if needed.
|
||||
default_lang: process.env.DEFAULT_LANG || 'en',
|
||||
theme: process.env.THEME || '', // '' or 'white' or 'dark'
|
||||
http_addr: process.env.HTTP_ADDR || '127.0.0.1', // Bind Wikiless to a specific IP address.
|
||||
nonssl_port: process.env.NONSSL_PORT || 8080,
|
||||
|
||||
/**
|
||||
* If your environment is using HTTPS, set these configs below.
|
||||
*/
|
||||
https_enabled: process.env.HTTPS_ENABLED === 'true' || false,
|
||||
ssl_port: process.env.SSL_PORT || 8088,
|
||||
cert_dir: process.env.CERT_DIR || ``, // For example '/home/wikiless/letsencrypt/live/wikiless.org'. No trailing slash.
|
||||
redirect_http_to_https: process.env.REDIRECT_HTTP_TO_HTTPS === 'true' || false, // If true, HTTP requests will be redirected to HTTPS.
|
||||
domain: process.env.DOMAIN || 'wikiless.whateveritworks.org', // Set to your own domain
|
||||
default_lang: process.env.DEFAULT_LANG || 'en', // Set your own language by default
|
||||
theme: process.env.THEME || 'dark', // Set to white if you do like dark by default
|
||||
http_addr: process.env.HTTP_ADDR || '0.0.0.0', // don't touch
|
||||
nonssl_port: process.env.NONSSL_PORT || 8080, // don't touch, unless you know what your doing
|
||||
|
||||
/**
|
||||
* You can configure redis below if needed.
|
||||
@@ -30,7 +22,7 @@ const config = {
|
||||
* You might need to change these configs below if you host through a reverse
|
||||
* proxy like nginx.
|
||||
*/
|
||||
trust_proxy: process.env.TRUST_PROXY === 'true' || false,
|
||||
trust_proxy: process.env.TRUST_PROXY === 'true' || true,
|
||||
trust_proxy_address: process.env.TRUST_PROXY_ADDRESS || '127.0.0.1',
|
||||
|
||||
/**
|
||||
@@ -47,7 +39,7 @@ const config = {
|
||||
* requests. It's a good idea to change this to something unique.
|
||||
* Read more: https://meta.wikimedia.org/wiki/User-Agent_policy
|
||||
*/
|
||||
wikimedia_useragent: process.env.wikimedia_useragent || 'Wikiless media proxy bot (https://codeberg.org/orenom/Wikiless)',
|
||||
wikimedia_useragent: process.env.wikimedia_useragent || 'Wikiless media proxy bot (https://github.com/Metastem/wikiless)',
|
||||
|
||||
/**
|
||||
* Cache control. Wikiless can automatically remove the cached media files from
|
||||
|
||||
Reference in New Issue
Block a user