Add private libreddit instance

This commit is contained in:
Salt 2022-11-17 13:26:18 -06:00
parent 32147f789f
commit a601e2c3e0
3 changed files with 26 additions and 0 deletions

View File

@ -101,6 +101,8 @@
value: vm-general-1.ashburn.mgmt.desu.ltd
- record: gitlab.desu.ltd
value: vm-general-1.ashburn.mgmt.desu.ltd
- record: lr.desu.ltd
value: vm-general-1.ashburn.mgmt.desu.ltd
- record: matrix.desu.ltd
value: vm-general-1.ashburn.mgmt.desu.ltd
- record: movie.desu.ltd

View File

@ -25,6 +25,7 @@
- web/element-web.yml
- web/firefly-iii.yml
- web/gitea.yml
- web/libreddit.yml
- web/netbox.yml
- web/nextcloud.yml
- web/prowlarr.yml
@ -247,6 +248,11 @@
proxy_pass: http://firefly-importer:8080
- name: git.desu.ltd
proxy_pass: http://gitea:3000
- name: lr.desu.ltd
directives:
- "allow 24.182.160.0/20"
- "deny all"
proxy_pass: http://libreddit:8080
- name: matrix.desu.ltd
proxies:
- location: "~* ^(\/_matrix|\/_synapse|\/client|\/health)"

View File

@ -0,0 +1,18 @@
# vim:ft=ansible:
- name: docker deploy libreddit
docker_container:
name: libreddit
image: spikecodes/libreddit:latest
env:
LIBREDDIT_DEFAULT_AUTOPLAY_VIDEOS: "on"
LIBREDDIT_DEFAULT_THEME: "laserwave"
LIBREDDIT_DEFAULT_FRONT_PAGE: "all"
LIBREDDIT_DEFAULT_COMMENT_SORT: "hot"
LIBREDDIT_DEFAULT_POST_SORT: "confidence"
LIBREDDIT_DEFAULT_SHOW_NSFW: "on"
LIBREDDIT_DEFAULT_USE_HLS: "on"
LIBREDDIT_DEFAULT_HIDE_HLS_NOTIFICATION: "on"
networks:
- name: web
aliases: [ "libreddit" ]
tags: [ docker, libreddit ]