Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
392 commits
Select commit Hold shift + click to select a range
7a9603f
add teddit.bus-hit.me instance (#285)
Jan 18, 2022
1efe34c
add description for config.api_force_https
Jan 18, 2022
c97fb5a
Use slim node image instead of alpine
austinhuang0131 Jan 26, 2022
b5878ea
Improve domain replacement regex
austinhuang0131 Jan 26, 2022
08437d8
Support redd.it short url redirections
austinhuang0131 Jan 26, 2022
301774c
update [email protected] - fixes CVE-2022-0235 (teddit is not affected)
Jan 29, 2022
791a80b
fix invalid mime type (fixes #291)
Jan 29, 2022
446f388
Merge pull request 'Improve domain replacement regex' (#289) from aus…
Jan 29, 2022
e87b811
Merge pull request 'Support redd.it short url redirections' (#290) fr…
Jan 29, 2022
d947182
Merge pull request 'Use slim node image instead of alpine' (#288) fro…
Jan 29, 2022
d315051
fix mime type in POST import_prefs
Jan 29, 2022
3ad64d5
use apt-get instead of apt
Jan 29, 2022
397a02c
add instances file, instances.json
Jan 29, 2022
01c41c7
link instances.json to ./static/instances.json (to make it accessible…
Jan 29, 2022
265c33f
use 24 hours interval if the interval value (config.cache_control_int…
Jan 29, 2022
eac2627
update version 0.4.1 => 0.4.2
Jan 29, 2022
7c7709e
improve subreddit search, include sort and t params (#204)
Jan 30, 2022
063523e
Improve how long source URLs are displayed
Jan 30, 2022
3ef2f00
Merge pull request 'Improve The Way Long Source URLs Are Displayed' (…
Jan 30, 2022
274a8be
Add option to hide posts upvotes and comments points
asyncmacro Jan 31, 2022
d71c888
Merge pull request 'Add option to hide posts upvotes and comments poi…
Jan 31, 2022
6c84bdd
set show_upvotes checked by default
Jan 31, 2022
8bcbe8d
fix instance onion link (fixes #294)
Feb 3, 2022
fa8f0ba
fix instance onion link (fixes #294)
Feb 3, 2022
1baa654
Add wget to the Docker so that the healthcheck works
TheFrenchGhosty Feb 8, 2022
2d69623
Merge pull request 'Add wget to the Docker so that the healthcheck wo…
Feb 8, 2022
a89ab7d
Show imgur videos
Feb 24, 2022
2b03532
Remove teddit.kavin.rocks from instance list
Mar 4, 2022
5c8cbc8
Merge pull request 'Remove teddit.kavin.rocks from instance list (doe…
Mar 4, 2022
a53a9fc
Merge pull request 'Show imgur videos' (#299) from StevenNMeza/teddit…
Mar 4, 2022
ee7508b
When teddifying URLs to se for links, images, or video, use correct p…
Mar 13, 2022
4626a0f
Add teddit.froth.zone to the instance list
SamTherapy Mar 27, 2022
87bd013
Remove teddit.kavin.rocks from instances.json
Mar 29, 2022
86dab3b
Merge pull request 'Add teddit.froth.zone to the instance list' (#303…
Mar 29, 2022
925fe05
Merge pull request 'Remove teddit.kavin.rocks from instances.json' (#…
Mar 29, 2022
09ca317
add instance rdt.trom.tf (#304)
Mar 29, 2022
4bb02ea
Use proper https_enabled flag
Mar 29, 2022
9b6dec1
Merge branch 'main' into origin/fix_static_links_when_https_disabled
Mar 29, 2022
77917c8
Merge pull request 'When self-hosting teddit with https disabled, gen…
Mar 30, 2022
1b6e1e5
fix rdt.trom.tf link
Mar 30, 2022
3612345
proxy i.redd.it and v.redd.it media links in comments (#307)
Apr 11, 2022
e640e79
update version 0.4.2 => 0.4.3
Apr 11, 2022
8ccc694
fix media proxying (clicking preview.redd.it image links was broken a…
May 1, 2022
9553b94
Add manually upscaled application logo to static content
Jun 10, 2022
7ceb0e8
Add og:site_name meta tag to head.pug
Jun 10, 2022
22328e3
Add og: meta tags to index.pug
Jun 10, 2022
12790f7
Add og: meta tags to about.pug
Jun 10, 2022
2a92f0a
Add og: meta tags to post.pug
Jun 10, 2022
0439573
Remove og:image:url property for gallery posts
Jun 10, 2022
5ef61af
Add og:type property to frontpage
Jun 10, 2022
932d7f0
Move post meta definition to separate file
Jun 10, 2022
2f51368
Move common og: meta definitions to include files
Jun 10, 2022
811348c
Add og: meta tags for subreddit.pug
Jun 10, 2022
064c975
Fix invalid indentation in meta_post.pug
Jun 10, 2022
319fa35
Update processJsonPost.js to store a preview selftext
Jun 10, 2022
6328e41
Update processJsonPost.js to remove newlines from selftext_preview
Jun 10, 2022
cc6c2a1
Add fallback logo for text-only posts in meta_post.pug
Jun 10, 2022
0bf3ead
Add og: meta tags in preferences.pug
Jun 10, 2022
9c8e72e
Add og: meta tags in privacypolicy.pug
Jun 10, 2022
a73bd2e
Add og: meta tags in saved.pug
Jun 10, 2022
ae429bc
Add og: meta tags in search.pug
Jun 10, 2022
05d7db4
Add og: meta tags in subreddit_wiki.pug
Jun 10, 2022
7a508c5
Add og: meta tags in subreddits_explore.pug
Jun 10, 2022
7f8cc27
Add og: meta tags in user.pug
Jun 10, 2022
1c9b125
Merge pull request 'Add OpenGraph meta tags for rich embeds' (#311) f…
Jun 10, 2022
9e4ea80
check that subreddit_about exists (sometimes it might be null and ref…
Jun 10, 2022
3855a61
update version 0.4.3 => 0.4.4
Jun 10, 2022
3541801
Add clean_homepage option to config.js.template
Jun 10, 2022
27ade36
Rename index.pug to frontpage.pug
Jun 10, 2022
6c52664
Add setting to preferences for preferred homepage mode
Jun 10, 2022
d6b2e07
Fix wrong rename for frontpage.pug
Jun 10, 2022
d368aca
Hide homepage setting when it's disabled site-wide
Jun 10, 2022
546fdb5
Convert 'on' value in prefer_frontpage setting to 'true'
Jun 10, 2022
fb66732
Add cleaned homepage
Jun 10, 2022
096c721
Merge pull request 'Add cleaned homepage' (#312) from redmt/teddit:ad…
Jun 11, 2022
b797cef
fix clean_homepage feature so that the user can enable or disable it …
Jun 11, 2022
c9b2dbf
fix identation
Jun 11, 2022
60d9b33
update version 0.4.4 => 0.4.5
Jun 11, 2022
a63b5be
add top bar to the cleaned homepage, and also fix the homepage pug ma…
Jun 11, 2022
0432c74
hide top links from the top bar in the cleaned homepage view
Jun 11, 2022
b0d5377
update packages and update package-lock.json (fixes #313)
Jun 11, 2022
108f87a
Add suggested_subreddits option to config.js.template
Jun 11, 2022
2ff979b
Update homepage.pug to show suggested subreddits
Jun 11, 2022
555ff90
Fix search form width for homepage.pug
Jun 11, 2022
cfdfd4a
Rename internal_config to instance_config for homepage.pug
Jun 11, 2022
20db540
Update topbar.pug to use suggested_subreddits
Jun 11, 2022
afbad4a
Update subreddit.js to pass instance_config to template
Jun 11, 2022
69a9b0e
Update inc/initRedditApi.js to pass instance_config to template
Jun 11, 2022
8f57cb1
Update home.js to pass instance_config to template
Jun 11, 2022
b2dba3f
Update preferences.js to pass instance_config to template
Jun 11, 2022
55bd044
Update save.js to pass instance_config to template
Jun 11, 2022
a0fcdf1
Update search.js to pass instance_config to template
Jun 11, 2022
53a5766
Update static.js to pass instance_config to template
Jun 11, 2022
1f6f5d6
Update user.js to pass instance_config to template
Jun 11, 2022
7f981f6
Merge pull request 'Add suggested_subreddits option to config.js' (#3…
Jun 11, 2022
28c3c60
add missing config require
Jun 11, 2022
270e9e5
update version 0.4.5 => 0.4.6
Jun 11, 2022
d8edffb
Add .vscode to .gitignore
Jun 11, 2022
601e393
Merge pull request 'Add .vscode to .gitignore' (#316) from redmt/tedd…
Jun 11, 2022
1759724
add the suggested_subreddits config to the list of env vars
Jun 11, 2022
fc56f0a
Update processJsonPost.js to include gallery image captions
Jun 11, 2022
0bf27cf
Update post.pug and styles.css for large gallery images
Jun 11, 2022
9fd891b
Add setting to show large gallery images with captions
Jun 11, 2022
1fbef42
Merge pull request 'Allow optional large image display with captions …
Jun 11, 2022
231348e
Fix error in the search route
Jun 11, 2022
b1f65f3
Merge pull request 'Fix error in the search route' (#318) from Steven…
Jun 11, 2022
4ff7152
Add setting for preferred default comment sorting
Jun 11, 2022
4663b3a
Merge pull request 'Add setting for preferred default comment sorting…
Jun 11, 2022
a0c74aa
fix sortby key, should be confidental and not best
Jun 11, 2022
84d0009
add an example about setting the suggested_subreddits array with env …
Jun 11, 2022
0863c84
add teddit.encrypted-data.xyz to the instance list (#320)
Jun 12, 2022
842a7ca
fix trom.tf link (fixes #322)
Jun 20, 2022
e3b2c66
add instance i.opnxng.com (#324)
Jun 22, 2022
e29b41a
Remove https://teddit.alefvanoon.xyz from instance list
triallax Jun 24, 2022
8af3ec3
Merge pull request 'Remove https://teddit.alefvanoon.xyz from instanc…
Jun 27, 2022
02fd92c
fix 'continue this thread' links (fixes #82)
Jun 27, 2022
2b22ffa
update version 0.4.6 => 0.4.7
Jun 27, 2022
07050c9
properly fix 'continue this thread' links - no need to req.url checki…
Jun 27, 2022
799bc83
update version 0.4.7 => 0.4.8
Jun 27, 2022
74625f3
add instance teddit.tokhmi.xyz (#328)
Jul 2, 2022
f33d78f
Integrate Reveddit with deleted comments
Jul 6, 2022
f7082ac
change deleted user's comment to #cc6a6a
Jul 7, 2022
7ef04de
Merge pull request 'Integrate Reveddit with deleted comments' (#329) …
Jul 7, 2022
18b26aa
adds nord dark theme
Jul 7, 2022
5f1d50b
Merge pull request 'adds nord dark theme' (#333) from apmechev/teddit…
Jul 8, 2022
372f213
Add Garudalinux' instance
Jul 13, 2022
25fa819
Merge pull request 'Add Garudalinux' instance' (#334) from dr460nf1r3…
Jul 20, 2022
cbd0bab
add garudalinux's instance to the instances.json (pr #334)
Jul 20, 2022
0da38c7
Add `tedd.it` to `instances.json`
Jul 21, 2022
baba8b7
Update 'README.md'
Jul 21, 2022
07984ab
Merge pull request 'Add tedd.it to instances list' (#335) from Concor…
Jul 21, 2022
09ac20d
Added PrivacyTools.io instance
Aug 13, 2022
163bfe8
Added PrivacyTools.io instance
Aug 13, 2022
cee8978
Merge pull request 'Added PrivacyTools.io instance' (#338) from Priva…
Aug 13, 2022
e697729
Add ~vern instances to instances.json
Aug 14, 2022
dbe25af
Add ~vern instances to README.md
Aug 14, 2022
d85f068
Merge pull request 'Add ~vern instances' (#339) from cobra/teddit:mai…
Aug 14, 2022
c515f35
Add instance: teddit.rawbit.ninja to instances.json
technonerd33 Aug 19, 2022
e120ecf
Add instance: teddit.rawbit.ninja to README.md
technonerd33 Aug 19, 2022
67b746c
Merge pull request 'Add new Instance teddit.rawbit.ninja' (#340) from…
Aug 20, 2022
e5cc5c8
L: Add reddit.artemislena.eu
artemislena Sep 5, 2022
bccae3c
L: s/reddit/teddit/
artemislena Sep 6, 2022
90f0872
Merge pull request 'L: Add teddit.artemislena.eu' (#344) from artemis…
Sep 6, 2022
55b17e5
add onion link for privacytools.io (#343)
Sep 6, 2022
52bc1f4
rewrite urls for embedded Reddit media in post comments (#345)
Sep 6, 2022
48b89a7
add missing comma (fixes #348)
Sep 9, 2022
738a7ba
Add Instances
ManaSiWibi Sep 12, 2022
b66e415
update readme
ManaSiWibi Sep 12, 2022
ccfdff6
Merge pull request 'Add 24fympskbrdgbf4afuvhqwwl2tv3y2vwxg5t2ktozd4j5…
Sep 16, 2022
ba8ed2a
Fixed some instances
Oct 3, 2022
e5d374f
update nord infobar bg
Oct 4, 2022
facab37
Merge pull request 'Fixed some instances' (#350) from Hygna/teddit:ma…
Oct 5, 2022
e5640ef
remove nautolan.racing for using tracking JS (#351)
Oct 5, 2022
27874a6
Merge pull request 'update nord infobar bg' (#352) from apmechev/tedd…
Oct 5, 2022
dcdfc28
tweak: Add documentation to daemonize process
NunoSempere Oct 14, 2022
718d04c
fix: typo
NunoSempere Oct 14, 2022
0cf3d6d
Add preview.redd.it to replaceable_media_domains
austinhuang0131 Oct 15, 2022
bc3af7b
Add Quetre option
Oct 15, 2022
1ece746
Merge pull request 'Add preview.redd.it to replaceable_media_domains'…
Oct 18, 2022
a4b130a
Merge pull request 'Add Quetre option' (#356) from alan2b7/teddit:add…
Oct 18, 2022
6fa109e
Merge pull request 'tweak: Add documentation to daemonize process' (#…
Oct 18, 2022
0003bdc
Mise à jour de 'instances.json'
Oct 23, 2022
ba3230b
Mise à jour de 'README.md'
Oct 23, 2022
83a8c48
Corrected privacytools teddit instance url
Oct 24, 2022
66b11dc
Merge pull request 'Add Hostux Instance' (#359) from valere/teddit:ma…
Oct 28, 2022
4c3c743
Merge pull request 'Corrected privacytools instance url' (#360) from …
Oct 28, 2022
eb2131c
- Consistent padding for input and select elements
ltguillaume Oct 29, 2022
bb06a47
Merge pull request 'Consistent padding for input and select elements,…
Oct 29, 2022
d70e6a4
upgrade github actions
eUgEntOptIc44 Oct 30, 2022
4241490
Fix theme select dropdown on invalid cookie value
Nov 8, 2022
ba207e1
Add height to Teddis topbar icon
Nov 8, 2022
dc58122
Spacing
Nov 8, 2022
ee7068a
Merge pull request 'Fix theme select dropdown on invalid cookie value…
Nov 9, 2022
e2237f1
Merge pull request 'upgrade github actions' (#363) from eUgEntOptIc44…
Nov 9, 2022
45dc798
implement imgur replacement (#341)
eUgEntOptIc44 Nov 12, 2022
50c3698
improved imgur regex pattern as requested in #365
eUgEntOptIc44 Nov 26, 2022
22b63a3
Merge pull request 'add imgur replacement feature (#341)' (#365) from…
Dec 11, 2022
0852396
Add support for post API
CosmosDev Dec 14, 2022
eec2a24
Add support for subreddit about API
CosmosDev Dec 14, 2022
baddb1a
Add suport for subreddit search API
CosmosDev Dec 15, 2022
3a51e9d
Refactor handleSubreddit.js
CosmosDev Dec 15, 2022
54c658f
Clean code
CosmosDev Dec 15, 2022
2c5c9d7
Add support for subreddits explore API
CosmosDev Dec 15, 2022
494c7f5
Merge pull request 'update: update fork before making new pull reques…
Dec 25, 2022
e59e57c
tweak: Add name flag to pm2, make docs a bit more explanatory.
Dec 25, 2022
d96372b
Adding port expose to dockerfile
Dec 27, 2022
c71bf6e
Add logic to parse and remove any instances of https://twitter.com by…
anshumankmr Dec 29, 2022
a9c8f6b
Bump redis from 3.1.2 to 4.5.1
dependabot[bot] Dec 29, 2022
625c86a
Bump postman-request from 2.88.1-postman.30 to 2.88.1-postman.31
dependabot[bot] Dec 29, 2022
0ea8b83
Bump helmet from 4.6.0 to 6.0.1
dependabot[bot] Dec 29, 2022
df20a9c
Merge pull request #5 from anshumankmr/dependabot/npm_and_yarn/helmet…
anshumankmr Dec 30, 2022
f7cecfd
Bump https-proxy-agent from 5.0.0 to 5.0.1
dependabot[bot] Dec 30, 2022
f7f2d0b
Update regex to find a match and replace if present
anshumankmr Dec 30, 2022
ab95c34
Merge branch 'main' of https://github.com/anshumankmr/teddit
anshumankmr Dec 30, 2022
2873e2a
Merge pull request #4 from anshumankmr/dependabot/npm_and_yarn/https-…
anshumankmr Dec 30, 2022
b6acf75
Merge pull request #3 from anshumankmr/dependabot/npm_and_yarn/postma…
anshumankmr Dec 30, 2022
b3b1cbb
Merge pull request #2 from anshumankmr/dependabot/npm_and_yarn/redis-…
anshumankmr Dec 30, 2022
e28ddf2
Bump node-fetch from 2.6.7 to 3.3.0
dependabot[bot] Dec 30, 2022
9a32861
Merge pull request #1 from anshumankmr/dependabot/npm_and_yarn/node-f…
anshumankmr Dec 30, 2022
ed0c0c7
Handle all variation of user preference for regexes
anshumankmr Dec 30, 2022
ea6ad7c
Merge pull request 'More API endpoints' (#373) from CosmosDev/teddit:…
Jan 1, 2023
572068a
Merge pull request 'tweak: Add flag to pm2 setup command & improve do…
Jan 1, 2023
d11ddce
Merge pull request 'Adding port expose to dockerfile' (#377) from bra…
Jan 1, 2023
d31c418
update packages
Jan 1, 2023
079ea36
update _options cookies, add option for opening gated subreddits, fix…
Jan 1, 2023
aa75cc2
Revert changes to package-lock.json and package.json
anshumankmr Jan 2, 2023
0969d69
Merge branch 'main' into main
Jan 2, 2023
596e8ef
added else statements for prefer_frontpage and show_large_gallery_images
Jan 22, 2023
563be38
Merge pull request 'added else statements for prefer_frontpage and sh…
Feb 26, 2023
8c52544
Merge pull request 'Add logic to parse and remove any instances of ht…
Feb 26, 2023
9cb6a80
update packages
Feb 26, 2023
68aed7b
add support for 7 character IDs for short urls (#290)
Feb 26, 2023
25e789f
add legal jargon (fixes #369)
Feb 26, 2023
21ddd3b
update version 0.4.8 => 0.4.9
Feb 26, 2023
96a55fb
rename 'Invidious' => 'Invidious/Piped' (fixes #386)
Feb 26, 2023
a02025a
remove inactive instance
ManaSiWibi Mar 4, 2023
298982d
Improve legal notice on README.md
Mar 8, 2023
2ac1466
added 'open in reddit.com' button
petarvladov9-a11y Apr 3, 2023
dbbb1ac
Merge pull request 'remove inactive instance' (#388) from ManaSiWibi/…
Apr 5, 2023
b9f108f
remove inactive teddit.manasiwibi.com
Apr 5, 2023
5c147d0
Merge pull request 'Improve legal notice on README.md' (#390) from He…
Apr 5, 2023
a23e606
update legal text
Apr 5, 2023
8e5f270
Merge branch 'main' into reddit-com-link
Apr 5, 2023
f56ec2f
made some changes to link
petarvladov9-a11y Apr 5, 2023
844b1d2
Merge branch 'reddit-com-link' of https://codeberg.org/ppsn/teddit in…
petarvladov9-a11y Apr 5, 2023
8094029
corrected a mistake
petarvladov9-a11y Apr 5, 2023
f73b9c2
Merge pull request 'Add 'open in reddit.com' button' (#393) from ppsn…
Apr 5, 2023
76c57cc
added links to repos
petarvladov9-a11y Apr 10, 2023
13e7a13
removed bibliogram
petarvladov9-a11y Apr 10, 2023
e6ccc29
change from debian stretch to latest (bullseye atm)
Apr 25, 2023
1fb2d45
Update 'README.md'
Apr 27, 2023
d574b42
Merge pull request 'change from debian stretch to latest (bullseye at…
Apr 27, 2023
605e906
corrected mistake
petarvladov9-a11y Apr 27, 2023
6d8f27a
Merge pull request 'Fix issues regarding preferences menu' (#395) fro…
Apr 27, 2023
a4558ce
add project segfault's instance (fixes #394)
Apr 27, 2023
50b112b
add Project Segfault's onion instance URL
Apr 27, 2023
6a26416
Update 'instances.json'
Apr 29, 2023
28bd75b
New Instance: teddit.xbdm.fun
Apr 30, 2023
ec882c6
New Instance: teddit.xbdm.fun
Apr 30, 2023
0536dcd
Merge pull request 'New Instance: teddit.xbdm.fun' (#401) from xbdm/t…
May 1, 2023
04980be
Update 'README.md'
May 5, 2023
d05ecf2
Update 'instances.json'
May 5, 2023
490556f
fix conflicts PR #399
May 5, 2023
e6ae8bf
Merge branch 'no-logs-main' into main
May 5, 2023
b0ce6c5
remove inactive teddit.namazso.eu instance
May 6, 2023
8d800e4
Catch errors when invalid data is received from Reddit in the user route
Jun 6, 2023
baa4fbd
Tedd.it and teddit.totaldarkness.net removed due to shutdown
0xblur Jul 15, 2023
2f3e820
Merge pull request 'Tedd.it and teddit.totaldarkness.net removed due …
Jul 30, 2023
242deb4
Merge pull request 'Catch errors when invalid data is received from R…
Jul 30, 2023
5ad8373
add mention about teddit no more being actively maintained due to Red…
Jul 30, 2023
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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
10 changes: 5 additions & 5 deletions .github/workflows/update-base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,26 @@ jobs:
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: "Checkout repository"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"
-
name: Build and push to Docker Hub and Github Packages Docker Registry
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
tags: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/update-image-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ jobs:
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: "Checkout repository"
uses: "actions/checkout@v2"
uses: "actions/checkout@v3"
-
name: Build and push to Docker Hub and Github Packages Docker Registry
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
tags: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
*.log
config.js
.vscode/
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Changelog has not been updated since 2021-03-23

# Changelog
## 2021-03-23
### Fixed
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Use LTS Node.js base image
FROM node:14.16-alpine
# Use LTS Node.js slim image
FROM node:slim

# Video support dependency
RUN apk add ffmpeg
RUN apt-get update && apt-get install -y ffmpeg wget

# Install NPM dependencies and copy the project
WORKDIR /teddit
Expand All @@ -12,4 +12,6 @@ COPY config.js.template ./config.js

RUN find ./static/ -type d -exec chmod -R 777 {} \;

EXPOSE 8080

CMD npm start
143 changes: 126 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# teddit

## teddit is no more actively maintained!

[Due to Reddit's API changes](https://en.wikipedia.org/wiki/2023_Reddit_API_controversy), this project is no more actively maintained.
Feel free to fork the project if you like, or contribute to other alternative Reddit front-ends, such as Libreddit, which are trying to come up with circumventions.

This project is still maintained, but just not actively. You can create PRs, but don't expect them to be merged right away.

---

[teddit.net](https://teddit.net)

A free and open source alternative Reddit front-end focused on privacy.
Expand All @@ -22,25 +31,96 @@ XMR: 832ogRwuoSs2JGYg7wJTqshidK7dErgNdfpenQ9dzMghNXQTJRby1xGbqC3gW3GAifRM9E84J91

Community instances:

* [https://teddit.ggc-project.de](https://teddit.ggc-project.de)
* [https://teddit.kavin.rocks](https://teddit.kavin.rocks)
* [https://teddit.zaggy.nl](https://teddit.zaggy.nl)
* [https://teddit.namazso.eu](https://teddit.namazso.eu)
* [https://teddit.nautolan.racing](https://teddit.nautolan.racing)
* [https://teddit.tinfoil-hat.net](https://teddit.tinfoil-hat.net)
* [https://teddit.domain.glass](https://teddit.domain.glass)
* [ibarajztopxnuhabfu7f...onion](http://ibarajztopxnuhabfu7fg6gbudynxofbnmvis3ltj6lfx47b6fhrd5qd.onion)
* [xugoqcf2pftm76vbznx4...i2p](http://xugoqcf2pftm76vbznx4xuhrzyb5b6zwpizpnw2hysexjdn5l2tq.b32.i2p)

| Instance | Onion Link | I2P | Notes |
|-|-|-|-|
| [teddit.ggc-project.de](https://teddit.ggc-project.de) | | | |
| [teddit.zaggy.nl](https://teddit.zaggy.nl) | | | |
| [teddit.tinfoil-hat.net](https://teddit.tinfoil-hat.net) | | | |
| [teddit.domain.glass](https://teddit.domain.glass) | | | |
| [snoo.ioens.is](https://snoo.ioens.is) | [snoo.ioensistjs7wd746...onion](http://snoo.ioensistjs7wd746zluwixvojbbkxhr37lepdvwtdfeav673o64iflqd.onion/) | | |
| [teddit.httpjames.space](https://teddit.httpjames.space) | | | |
| [teddit.xbdm.fun](https://teddit.xbdm.fun) | | | |
| | [ibarajztopxnuhabfu7f...onion](http://ibarajztopxnuhabfu7fg6gbudynxofbnmvis3ltj6lfx47b6fhrd5qd.onion) | [xugoqcf2pftm76vbznx4...i2p](http://xugoqcf2pftm76vbznx4xuhrzyb5b6zwpizpnw2hysexjdn5l2tq.b32.i2p) | Operated by [mdleom.com](https://mdleom.com/about/#Services) |
| [incogsnoo.com](https://incogsnoo.com) | [tedditfyn6idalzso5wam....onion](http://tedditfyn6idalzso5wam5qd3kdtxoljjhbrbbx34q2xkcisvshuytad.onion/) | [http://teddit.i2p](http://teddit.i2p) | |
| [teddit.pussthecat.org](https://teddit.pussthecat.org) | | | Operated by [PussTheCat.org](https://pussthecat.org/) |
| [reddit.lol](https://reddit.lol) | [http://dawtyi5e2cfyfmoht...onion](http://dawtyi5e2cfyfmoht4izmczi42aa2zwh6wi34zwvc6rzf2acpxhrcrad.onion) | [http://vzeiwzi7ogwl3i...b32.i2p](http://vzeiwzi7ogwl3ijrfek4fbtwhvamxcpyqoc3s4vcgnhlp54s5clq.b32.i2p) | Operated by https://liberta.casa | |
| [teddit.sethforprivacy.com](https://teddit.sethforprivacy.com/) | [qtpvyiaqhmwccx...onion/](http://qtpvyiaqhmwccxwzsqubd23xhmmrt75tdyw35kp43w4hvamsgl3x27ad.onion/) | | For more similar hosted tools, see [blog.sethforprivacy.com](https://blog.sethforprivacy.com/about/#my-community-resources) |
| [teddit.adminforge.de](https://teddit.adminforge.de) | | | Operated by https://adminforge.de |
| [teddit.bus-hit.me](https://teddit.bus-hit.me) | | | Operated by https://bus-hit.me |
| [teddit.froth.zone](https://teddit.froth.zone) | | | |
| [rdt.trom.tf](https://rdt.trom.tf) | | | Part of the https://trom.tf project |
| [teddit.encrypted-data.xyz](https://teddit.encrypted-data.xyz) | | | |
| [i.opnxng.com](https://i.opnxng.com) | | | |
| [teddit.tokhmi.xyz](https://teddit.tokhmi.xyz) | | | |
| [teddit.garudalinux.org](https://teddit.garudalinux.org) | | | Managed by https://garudalinux.org |
| [teddit.privacytools.io](https://teddit.privacytools.io) | [jnuonmf2n36sfdmyksqq....onion](http://jnuonmf2n36sfdmyksqqqyab3w63cq4kx24olyjleh5z6zzfvyt7uqqd.onion) | | Part of [PrivacyTools.io](https://www.privacytools.io/) and hosted by [Privex](https://www.privex.io/) |
| [td.vern.cc](https://td.vern.cc) | [td.vernccvbvyi5qhfzyqen...onion](http://td.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion) | [td.vern.i2p](http://verncco2oaxjikammz4pi7umzp673cme6zuemx7yeeewspwrw3va.b32.i2p) | Operated by https://vern.cc |
| [teddit.rawbit.ninja](https://teddit.rawbit.ninja) | [yqu4yj5lju7bmlwpzpml...onion](http://yqu4yj5lju7bmlwpzpmltb5gsu6cw7nnbcxxx4iqemwa56nxjiggf4qd.onion) | | Operated by https://rawbit.ninja |
| [teddit.artemislena.eu](https://teddit.artemislena.eu) | [teddit.lpoaj7z2zkajuhgnlltp...onion](http://teddit.lpoaj7z2zkajuhgnlltpeqh3zyq7wk2iyeggqaduhgxhyajtdt2j7wad.onion) | | Operated by https://artemislena.eu |
| [teddit.hostux.net](https://teddit.hostux.net) | | | Operated by https://hostux.net |
| [teddit.no-logs.com](https://teddit.no-logs.com/) | | | Operated by https://no-logs.com |
| [teddit.projectsegfau.lt](https://teddit.projectsegfau.lt) | [teddit.pjsfkvpxlinjamta...onion](http://teddit.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion) | | Maintained by Project Segfault Team (https://projectsegfau.lt/team) |

<!--
Remove the Changelog section, because the CHANGELOG.md is not updated anymore
## Changelog

See ```CHANGELOG.md```
-->

## Installation

### Docker-compose method
### Docker-compose method (production)

```docker
version: "3.8"

services:

teddit:
container_name: teddit
image: teddit/teddit:latest
environment:
- DOMAIN=teddit.net
- USE_HELMET=true
- USE_HELMET_HSTS=true
- TRUST_PROXY=true
- REDIS_HOST=teddit-redis
ports:
- "127.0.0.1:8080:8080"
networks:
- teddit_net
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/about"]
interval: 1m
timeout: 3s
depends_on:
- teddit-redis

teddit-redis:
container_name: teddit-redis
image: redis:6.2.5-alpine
command: redis-server
environment:
- REDIS_REPLICATION_MODE=master
networks:
- teddit_net

networks:
teddit_net:
```

Note: This compose is made for a true "production" setup, and is made to be used to have teddit behind a reverse proxy, if you don't want that and prefer to directly access teddit via its port:

- Change `ports: - "127.0.0.1:8080:8080"` to `ports: - "8080:8080"`
- Remove `DOMAIN=teddit.net`, `USE_HELMET=true`, `USE_HELMET_HSTS=true`, `TRUST_PROXY=true`


### Docker-compose method (development)

```console
wget https://codeberg.org/teddit/teddit/raw/branch/main/docker-compose.yml
```bash
git clone https://codeberg.org/teddit/teddit
cd teddit
docker-compose build
docker-compose up
```
Expand All @@ -62,6 +142,7 @@ The following variables may be set to customize your deployment at runtime.
| flairs_enabled | Enables the rendering of user and link flairs on Teddit. Defaults to **true** |
| highlight_controversial | Enables controversial comments to be indicated by a typographical dagger (†). Defaults to **true** |
| api_enabled | Teddit API feature. Might increase loads significantly on your instance. Defaults to **true** |
| api_force_https | Force HTTPS to Teddit API permalinks (see #285). Defaults to **false** |
| video_enabled | Enables video playback within Teddit. Defaults to **true** |
| redis_enabled | Enables Redis caching. If disabled, does not allow for any caching of Reddit API calls. Defaults to **true** |
| redis_db | Sets the redis DB name, if required |
Expand All @@ -80,23 +161,29 @@ The following variables may be set to customize your deployment at runtime.
| use_helmet_hsts | *Boolean* Recommended to be true when using https. Defaults to **false** |
| trust_proxy | *Boolean* Enable trust_proxy if you are using a reverse proxy like nginx or traefik. Defaults to **false** |
| trust_proxy_address | Location of trust_proxy. Defaults to **127.0.0.1** |
| http_proxy | Set http/https proxy to use for outgoing requests. See [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) for details |
| nsfw_enabled | *Boolean* Enable NSFW (over 18) content. If false, a warning is shown to the user before opening any NSFW post. When the NFSW content is disabled, NSFW posts are hidden from subreddits and from user page feeds. Note: Users can set this to true or false from their preferences. Defaults to **true** |
| videos_muted | *Boolean* Automatically mute all videos in posts. Defaults to **true** |
| post_comments_sort | Defines default sort preference. Options are *confidence* (default sorting option in Reddit), *top*, *new*, *controversal*, *old*, *random*, *qa*, *live*. Defaults to **confidence** |
| reddit_app_id | If "use_reddit_oauth" config key is set to true, you have to obtain your 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. Default is **ABfYqdDc9qPh1w** |
| domain_replacements | Replacements for domains in outgoing links. Tuples with regular expressions to match, and replacement values. This is in addition to user-level configuration of privacyDomains. Defaults to **[]** |
| cache_control | *Boolean* If true, teddit will automatically remove all cached static files. Defaults to **true** |
| cache_control_interval | How often the cache directory for static files is emptied (in hours). Default is every 24 hours. Requires cache_control to be true. Defaults to **24** |
| suggested_subreddits | Array of suggested subreddits, which are displayed in the top bar (if the user doesn't have any subscriptions) and in the cleaned home page. Defaults to Reddit's default suggested subreddits. |

### Manual

1. Install [Node.js](https://nodejs.org).

1. (Optional) Install [redis-server](https://redis.io).

Highly recommended – it works as a cache for Reddit API calls.
Highly recommended – it works as a cache for Reddit API calls.

1. (Optional) Install [ffmpeg](https://ffmpeg.org).

It's needed if you want to support videos.

```console
```bash
# Linux
apt install redis-server ffmpeg

Expand All @@ -106,7 +193,7 @@ The following variables may be set to customize your deployment at runtime.

1. Clone and set up the repository.

```console
```bash
git clone https://codeberg.org/teddit/teddit
cd teddit
npm install --no-optional
Expand All @@ -115,4 +202,26 @@ The following variables may be set to customize your deployment at runtime.
npm start
```

Teddit should now be running at <http://localhost:8080>.
Teddit should now be running at <http://localhost:8080>.

You can also run teddit from a process manager like [pm2](https://www.npmjs.com/package/pm2):

```
## To run:
npm install pm2 -g
pm2 start app.js --name teddit

## To run on startup:
pm2 startup
pm2 save ## if using systemd, see below.

## To restart or stop
pm2 restart teddit
pm2 stop teddit
```

See also the [pm2 instructions for running a project on startup](https://pm2.keymetrics.io/docs/usage/startup/). In particular, if using systemd, see the section on how to modify the systemd init file so that it runs after your system connects to the network.

## Legal

Teddit does not host any content. All content shown on any Teddit instances is from Reddit™. Reddit is a trademark of Reddit Inc. Teddit is not affiliated with Reddit Inc. Any issues with content shown on any Teddit instances need to be reported to Reddit, not the instance host's internet provider or domain provider.
Loading