mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-25 16:49:26 +01:00
add missing redirect_www
This commit is contained in:
parent
7e2153bd48
commit
92a4890cd4
@ -34,6 +34,7 @@ Community instances:
|
|||||||
* Subreddit flairs and wikis
|
* Subreddit flairs and wikis
|
||||||
* User trophies
|
* User trophies
|
||||||
* "other discussions" feature
|
* "other discussions" feature
|
||||||
|
* "Open on reddit" links
|
||||||
* ... and lot of other small stuff
|
* ... and lot of other small stuff
|
||||||
|
|
||||||
## Roadmap
|
## Roadmap
|
||||||
@ -60,5 +61,5 @@ Leave ffmpeg out if you don't want video support.
|
|||||||
1. Edit `config.js.template` to suit your environment. After done, rename it to `config.js`.
|
1. Edit `config.js.template` to suit your environment. After done, rename it to `config.js`.
|
||||||
1. `$ node app.js`
|
1. `$ node app.js`
|
||||||
|
|
||||||
Teddit should be now running on.
|
Teddit should be now running.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
const config = {
|
const config = {
|
||||||
domain: '127.0.0.1', // Or for example 'teddit.net'
|
domain: '127.0.0.1', // Or for example 'teddit.net'
|
||||||
reddit_app_id: 'H6-HjZ5pUPjaFQ', // You should obtain your own Reddit app ID
|
reddit_app_id: 'H6-HjZ5pUPjaFQ', // You should obtain your own Reddit app ID. For testing purposes it's okay to use this project's default app ID. Create your Reddit app here: https://old.reddit.com/prefs/apps/. Make sure to create an "installed app" type of app.
|
||||||
cert_dir: '', // For example '/home/teddit/letsencrypt/live/teddit.net', if you are using https. No trailing slash.
|
cert_dir: '', // For example '/home/teddit/letsencrypt/live/teddit.net', if you are using https. No trailing slash.
|
||||||
video_enabled: true,
|
video_enabled: true,
|
||||||
ssl_port: 8088,
|
ssl_port: 8088,
|
||||||
@ -8,6 +8,7 @@ const config = {
|
|||||||
listen_address: '0.0.0.0',
|
listen_address: '0.0.0.0',
|
||||||
https_enabled: false,
|
https_enabled: false,
|
||||||
redirect_http_to_https: false,
|
redirect_http_to_https: false,
|
||||||
|
redirect_www: false,
|
||||||
use_compression: true,
|
use_compression: true,
|
||||||
use_view_cache: false,
|
use_view_cache: false,
|
||||||
use_helmet: false, // Recommended to be true when using https
|
use_helmet: false, // Recommended to be true when using https
|
||||||
@ -27,7 +28,7 @@ const config = {
|
|||||||
searches: 600,
|
searches: 600,
|
||||||
sidebar: 60 * 60 * 24 * 7 // 7 days
|
sidebar: 60 * 60 * 24 * 7 // 7 days
|
||||||
},
|
},
|
||||||
post_comments_sort: 'confidence', // one of: confidence, top, new, controversial, old, random, qa, live
|
post_comments_sort: 'confidence', // "confidence" is the default sorting in Reddit. Must be onee of: confidence, top, new, controversial, old, random, qa, live.
|
||||||
valid_media_domains: ['preview.redd.it', 'external-preview.redd.it', 'i.redd.it', 'v.redd.it', 'a.thumbs.redditmedia.com', 'b.thumbs.redditmedia.com', 'thumbs.gfycat.com', 'i.ytimg.com'],
|
valid_media_domains: ['preview.redd.it', 'external-preview.redd.it', 'i.redd.it', 'v.redd.it', 'a.thumbs.redditmedia.com', 'b.thumbs.redditmedia.com', 'thumbs.gfycat.com', 'i.ytimg.com'],
|
||||||
reddit_api_error_text: `Seems like your instance is either blocked (e.g. due to API rate limiting), reddit is currently down, or your API key is expired and not renewd properly. This can also happen for other reasons.`
|
reddit_api_error_text: `Seems like your instance is either blocked (e.g. due to API rate limiting), reddit is currently down, or your API key is expired and not renewd properly. This can also happen for other reasons.`
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user