fixes i needed during deployment
This commit is contained in:
parent
ab3522f6d2
commit
1b5054c5f8
@ -6,4 +6,4 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "10416:10416"
|
- "10416:10416"
|
||||||
volumes:
|
volumes:
|
||||||
- "./config.ini:/app/config.ini"
|
- "./extras.conf:/app/config.ini"
|
||||||
|
@ -13,4 +13,4 @@ services:
|
|||||||
- APP_DOMAIN=scribe.projectsegfau.lt
|
- APP_DOMAIN=scribe.projectsegfau.lt
|
||||||
- LUCKY_ENV=production
|
- LUCKY_ENV=production
|
||||||
- PORT=8006
|
- PORT=8006
|
||||||
- SECRET_KEY_BASE={{scribe_secret_key_base}}
|
- SECRET_KEY_BASE={{scribe_secret_key_base}}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
version: 2
|
|
||||||
services:
|
services:
|
||||||
watchtower:
|
watchtower:
|
||||||
image: containrrr/watchtower
|
image: containrrr/watchtower
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
- name: Create directory for service
|
||||||
|
file:
|
||||||
|
path: /opt/docker/{{item}}
|
||||||
|
state: directory
|
||||||
- name: Copy docker-compose templates for the service
|
- name: Copy docker-compose templates for the service
|
||||||
template:
|
template:
|
||||||
src: ./compose/{{item}}/compose.yml.j2
|
src: ./compose/{{item}}/compose.yml.j2
|
||||||
@ -20,16 +24,16 @@
|
|||||||
command:
|
command:
|
||||||
chdir: "/opt/docker/{{ item }}"
|
chdir: "/opt/docker/{{ item }}"
|
||||||
cmd: docker compose pull
|
cmd: docker compose pull
|
||||||
when: check_status is changed
|
when: check_status.changed
|
||||||
|
|
||||||
- name: "Stop docker service"
|
- name: "Stop docker service"
|
||||||
command:
|
command:
|
||||||
chdir: "/opt/docker/{{ item }}"
|
chdir: "/opt/docker/{{ item }}"
|
||||||
cmd: docker compose down
|
cmd: docker compose down
|
||||||
when: check_status is changed
|
when: check_status.changed
|
||||||
|
|
||||||
- name: "Start docker service"
|
- name: "Start docker service"
|
||||||
command:
|
command:
|
||||||
chdir: "/opt/docker/{{ item }}"
|
chdir: "/opt/docker/{{ item }}"
|
||||||
cmd: docker compose up -d --build --remove-orphans
|
cmd: docker compose up -d --build --remove-orphans
|
||||||
when: check_status is changed
|
when: check_status.changed
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
- name: Setup Caddy
|
- name: Setup Caddy
|
||||||
hosts: privfrontends
|
hosts: privfrontends
|
||||||
roles:
|
roles:
|
||||||
- role: caddy_ansible.caddy_ansible
|
- role: caddy-ansible
|
||||||
caddy_systemd_capabilities_enabled: true
|
caddy_systemd_capabilities_enabled: true
|
||||||
caddy_config: "{{ lookup('template', './templates/Caddyfile.j2') }}"
|
caddy_config: "{{ lookup('template', './templates/Caddyfile.j2') }}"
|
||||||
caddy_user: "caddy"
|
caddy_user: "caddy"
|
||||||
caddy_home: "/var/lib/caddy"
|
caddy_home: "/var/lib/caddy"
|
||||||
|
caddy_packages: ["github.com/caddy-dns/rfc2136@master"]
|
||||||
# Static weekly builds of caddy with rfc2136 dns plugin
|
# Static weekly builds of caddy with rfc2136 dns plugin
|
||||||
caddy_url_base: "https://cb.projectsegfau.lt/api/download"
|
caddy_url_base: "https://cb.projectsegfau.lt/api/download"
|
||||||
tasks:
|
tasks:
|
||||||
@ -14,18 +15,22 @@
|
|||||||
copy:
|
copy:
|
||||||
src: "./templates/{{ inventory_hostname }}/"
|
src: "./templates/{{ inventory_hostname }}/"
|
||||||
dest: /etc/caddy/
|
dest: /etc/caddy/
|
||||||
remote_src: true
|
|
||||||
directory_mode: true
|
directory_mode: true
|
||||||
|
- name: Restart
|
||||||
|
service:
|
||||||
|
name: caddy
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
- name: Setup docker compose for privacy frontends
|
- name: Setup docker compose for privacy frontends
|
||||||
hosts: privfrontends
|
hosts: privfrontends
|
||||||
vars:
|
vars:
|
||||||
docker_services:
|
docker_services:
|
||||||
- anonymousoverflow
|
- anonymousoverflow
|
||||||
- beatbump
|
#- beatbump
|
||||||
- breezewiki
|
- breezewiki
|
||||||
- gothub
|
- gothub
|
||||||
- gothub-dev
|
- gothub-dev
|
||||||
- invidious
|
#- invidious
|
||||||
- librarian
|
- librarian
|
||||||
- libreddit
|
- libreddit
|
||||||
- nitter
|
- nitter
|
||||||
@ -34,8 +39,8 @@
|
|||||||
- teddit
|
- teddit
|
||||||
- watchtower
|
- watchtower
|
||||||
non_pizza_docker_services:
|
non_pizza_docker_services:
|
||||||
- piped
|
#- piped
|
||||||
- searxng-docker
|
- searxng
|
||||||
tasks:
|
tasks:
|
||||||
#
|
#
|
||||||
# community.docker does not support compose 2.0 right now.
|
# community.docker does not support compose 2.0 right now.
|
||||||
|
@ -134,6 +134,10 @@ proxy.lbry.projectsegfau.lt {
|
|||||||
reverse_proxy localhost:3001
|
reverse_proxy localhost:3001
|
||||||
import def
|
import def
|
||||||
}
|
}
|
||||||
|
gothub.dev.projectsegfau.lt gh.dev.psf.lt {
|
||||||
|
reverse_proxy localhost:1025
|
||||||
|
import def
|
||||||
|
}
|
||||||
{% else %}
|
{% else %}
|
||||||
inv.{{inventory_hostname}}.projectsegfau.lt {
|
inv.{{inventory_hostname}}.projectsegfau.lt {
|
||||||
reverse_proxy localhost:7573
|
reverse_proxy localhost:7573
|
||||||
@ -260,7 +264,7 @@ pi.{{inventory_hostname}}.psf.lt {
|
|||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
lbry.{{inventory_hostname}}.projectsegfau.lt lbry.projectsegfau.lt {
|
lbry.{{inventory_hostname}}.projectsegfau.lt lbry.projectsegfau.lt {
|
||||||
reverse_proxy :7269
|
reverse_proxy :3550
|
||||||
import def
|
import def
|
||||||
import torloc lbry
|
import torloc lbry
|
||||||
import i2ploc pjsf7uucpqf2crcmfo3nvwdmjhirxxjfyuvibdfp5x3af2ghqnaa.b32.i2p
|
import i2ploc pjsf7uucpqf2crcmfo3nvwdmjhirxxjfyuvibdfp5x3af2ghqnaa.b32.i2p
|
||||||
@ -392,4 +396,4 @@ search.{{inventory_hostname}}.projectsegfau.lt s.psf.lt s.{{inventory_hostname}}
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
include ./*.Caddyfile
|
import ./*.Caddyfile
|
||||||
|
@ -1,10 +1,3 @@
|
|||||||
http://pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion http://pjsfg3pdzzocax6a4oznoyf5k4etzknfatqu23i43wxejwdaffoa.b32.i2p {
|
|
||||||
reverse_proxy https://projectsegfau.lt {
|
|
||||||
header_up Host "projectsegfau.lt"
|
|
||||||
}
|
|
||||||
import tor www
|
|
||||||
import i2ploc pjsfg3pdzzocax6a4oznoyf5k4etzknfatqu23i43wxejwdaffoa.b32.i2p
|
|
||||||
}
|
|
||||||
http://www.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion http://pjsfg3pdzzocax6a4oznoyf5k4etzknfatqu23i43wxejwdaffoa.b32.i2p {
|
http://www.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion http://pjsfg3pdzzocax6a4oznoyf5k4etzknfatqu23i43wxejwdaffoa.b32.i2p {
|
||||||
reverse_proxy https://projectsegfau.lt {
|
reverse_proxy https://projectsegfau.lt {
|
||||||
header_up Host "projectsegfau.lt"
|
header_up Host "projectsegfau.lt"
|
||||||
@ -68,9 +61,9 @@ http://gothub.dev.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion
|
|||||||
import tor gothub.dev
|
import tor gothub.dev
|
||||||
reverse_proxy localhost:1025
|
reverse_proxy localhost:1025
|
||||||
}
|
}
|
||||||
http://inv.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion http://pjsfi2szfkb4guqzmfmlyq4no46fayertjrwt4h2uughccrh2lvq.b32.i2p {
|
http://inv.pjsfkvpxlinjamtawaksbnnaqs2fc2mtvmozrzckxh7f3kis6yea25ad.onion http://pjsfhqamc7k6htnumrvn4cwqqdoggeepj7u5viyimgnxg3gar72q.b32.i2p {
|
||||||
import tor inv
|
import tor inv
|
||||||
import i2ploc pjsfi2szfkb4guqzmfmlyq4no46fayertjrwt4h2uughccrh2lvq.b32.i2p
|
import i2ploc pjsfhqamc7k6htnumrvn4cwqqdoggeepj7u5viyimgnxg3gar72q.b32.i2p
|
||||||
reverse_proxy https://invidious.projectsegfau.lt {
|
reverse_proxy https://invidious.projectsegfau.lt {
|
||||||
header_up Host "invidious.projectsegfau.lt"
|
header_up Host "invidious.projectsegfau.lt"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
stats.eu.projectsegfau.lt {
|
stats.eu.projectsegfau.lt {
|
||||||
import auth
|
basicauth * {
|
||||||
|
admin $2a$14$4R5m1Kl74xwVp8MsR.jFeOpa6ssXwHN7ANwJi300zIrienTG44Abi
|
||||||
|
}
|
||||||
reverse_proxy localhost:9100
|
reverse_proxy localhost:9100
|
||||||
import def
|
import def
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user