Update wikiless.config

This commit is contained in:
xbdm
2023-06-05 16:42:45 -04:00
committed by GitHub
parent 6b8e2270b5
commit 20f070ab8d
+7 -15
View File
@@ -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