Merge branch 'master' of git.projectsegfau.lt:ProjectSegfault/ansible
This commit is contained in:
@@ -208,6 +208,11 @@
|
|||||||
dest: "/etc/borgmatic/config.yaml"
|
dest: "/etc/borgmatic/config.yaml"
|
||||||
state: "absent"
|
state: "absent"
|
||||||
regexp: "^.*encryption_passphrase"
|
regexp: "^.*encryption_passphrase"
|
||||||
|
- name: Copy per-server docker daemon.json
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "./templates/{{ inventory_hostname }}/daemon.json"
|
||||||
|
dest: /etc/docker/daemon.json
|
||||||
|
mode: preserve
|
||||||
handlers:
|
handlers:
|
||||||
- name: Restart sshd
|
- name: Restart sshd
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
|
18
all/templates/eu/daemon.json
Normal file
18
all/templates/eu/daemon.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"experimental": true,
|
||||||
|
"ip6tables": true,
|
||||||
|
"ipv6": true,
|
||||||
|
"fixed-cidr-v6": "fd00::/64",
|
||||||
|
"log-driver": "local",
|
||||||
|
"default-address-pools": [
|
||||||
|
{ "base": "172.17.0.0/16", "size": 16 },
|
||||||
|
{ "base": "172.18.0.0/16", "size": 16 },
|
||||||
|
{ "base": "172.19.0.0/16", "size": 16 },
|
||||||
|
{ "base": "172.20.0.0/14", "size": 16 },
|
||||||
|
{ "base": "172.24.0.0/14", "size": 16 },
|
||||||
|
{ "base": "172.28.0.0/14", "size": 16 },
|
||||||
|
{ "base": "192.168.0.0/16", "size": 20 },
|
||||||
|
{ "base": "2001:db8::/104", "size": 112 }
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
13
all/templates/in/daemon.json
Normal file
13
all/templates/in/daemon.json
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"ipv6": true,
|
||||||
|
"log-driver": "local",
|
||||||
|
"fixed-cidr-v6": "2001:db8:1::/64",
|
||||||
|
"default-address-pools": [
|
||||||
|
{
|
||||||
|
"base": "172.80.0.0/16",
|
||||||
|
"size": 24
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"experimental": true,
|
||||||
|
"ip6tables": true
|
||||||
|
}
|
5
all/templates/us/daemon.json
Normal file
5
all/templates/us/daemon.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"log-driver": "local",
|
||||||
|
"ipv6": true,
|
||||||
|
"fixed-cidr-v6": "fd00:dead:beef::/48"
|
||||||
|
}
|
@@ -136,6 +136,9 @@ n.eu.psf.lt n.us.psf.lt n.in.psf.lt {
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
libreddit.{{ server_prefix }}.projectsegfau.lt libreddit.projectsegfau.lt lr.psf.lt lr.{{ server_prefix }}.psf.lt {
|
libreddit.{{ server_prefix }}.projectsegfau.lt libreddit.projectsegfau.lt lr.psf.lt lr.{{ server_prefix }}.psf.lt {
|
||||||
reverse_proxy :6464
|
reverse_proxy :6464
|
||||||
|
route {
|
||||||
|
reverse_proxy /preview/* :6465
|
||||||
|
}
|
||||||
import def
|
import def
|
||||||
log {
|
log {
|
||||||
# This is temporarily required to monitor nitter traffic due to scrapers being more active, so we need to monitor and rate limit them at a later date.
|
# This is temporarily required to monitor nitter traffic due to scrapers being more active, so we need to monitor and rate limit them at a later date.
|
||||||
|
@@ -114,7 +114,7 @@ apps:
|
|||||||
- name: redlib
|
- name: redlib
|
||||||
image: quay.io/redlib/redlib:latest
|
image: quay.io/redlib/redlib:latest
|
||||||
ports:
|
ports:
|
||||||
- "8080"
|
- "6465:8080"
|
||||||
environment:
|
environment:
|
||||||
FRONT_PAGE: popular
|
FRONT_PAGE: popular
|
||||||
COMMENT_SORT: new
|
COMMENT_SORT: new
|
||||||
|
Reference in New Issue
Block a user