new per-host caddy extras file

This commit is contained in:
Arya 2023-04-20 09:12:25 +05:30
parent 4f5d964015
commit a03de1ebdf
Signed by: arya
GPG Key ID: 842D12BDA50DF120
7 changed files with 12 additions and 55 deletions

View File

@ -1,17 +0,0 @@
version: "3.8"
services:
scribe:
image: registry.gitlab.com/lomanic/scribe-binaries:latest
restart: always
container_name: "scribe"
ports:
- 127.0.0.1:6265:8006
environment:
- SCRIBE_PORT=8006
- SCRIBE_HOST=0.0.0.0
- APP_DOMAIN=scribe.projectsegfau.lt
- LUCKY_ENV=production
- PORT=8006
- SECRET_KEY_BASE=uVN1eX+RQu7HVuIC0IoPonoy9Lk4rdNV0byjHjzo76M=

View File

@ -1,37 +0,0 @@
version: "3.8"
services:
teddit:
container_name: teddit
image: teddit/teddit:latest
environment:
- DOMAIN=teddit.projectsegfau.lt
- USE_HELMET=true
- USE_HELMET_HSTS=true
- TRUST_PROXY=true
- REDIS_HOST=teddit-redis
ports:
- "127.0.0.1:6974: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
restart: always
teddit-redis:
container_name: teddit-redis
image: redis:6.2.5-alpine
command: redis-server
environment:
- REDIS_REPLICATION_MODE=master
networks:
- teddit_net
restart: always
networks:
teddit_net:

View File

@ -4,12 +4,15 @@ ansibletest:
ansible_host: in.projectsegfau.lt ansible_host: in.projectsegfau.lt
ansible_user: root ansible_user: root
ansible_port: 6945 ansible_port: 6945
caddy_extras_config: templates/1-extras.caddy
ansible02: ansible02:
ansible_host: in.projectsegfau.lt ansible_host: in.projectsegfau.lt
ansible_user: root ansible_user: root
ansible_port: 6946 ansible_port: 6946
caddy_extras_config: templates/2-extras.caddy
ansible03: ansible03:
ansible_host: in.projectsegfau.lt ansible_host: in.projectsegfau.lt
ansible_user: root ansible_user: root
ansible_port: 6947 ansible_port: 6947
caddy_extras_config: templates/3-extras.caddy

View File

@ -1,5 +1,5 @@
--- ---
- hosts: all - hosts: ansibletest
roles: roles:
- role: caddy_ansible.caddy_ansible - role: caddy_ansible.caddy_ansible
caddy_systemd_capabilities_enabled: true caddy_systemd_capabilities_enabled: true
@ -8,3 +8,8 @@
caddy_home: "/var/lib/caddy" caddy_home: "/var/lib/caddy"
# Static weekly builds of caddy with rfc2136 # Static weekly builds of caddy with rfc2136
caddy_url_base: "https://cb.projectsegfau.lt/api/download" caddy_url_base: "https://cb.projectsegfau.lt/api/download"
tasks:
- name: Copy per-server caddy extras
ansible.builtin.copy:
src: "../{{ caddy_extras_config }}"
dest: /etc/caddy/extras.caddy

1
templates/1-extras.caddy Normal file
View File

@ -0,0 +1 @@
Some shit ansible01

1
templates/2-extras.caddy Normal file
View File

@ -0,0 +1 @@
Some more shit ansible02

1
templates/3-extras.caddy Normal file
View File

@ -0,0 +1 @@
Some more more shit ansible03