Move emgauwa.app to separate service

This commit is contained in:
Tobias Reisinger 2026-07-19 00:40:49 +02:00
commit 7388a6e688
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
6 changed files with 55 additions and 3 deletions

View file

@ -115,6 +115,17 @@ D("emgauwa.app", REG_OVH, DnsProvider(DSP_OVH),
emgauwa_records(emgauwa) emgauwa_records(emgauwa)
); );
// _ _ _ _ _ _ _ _
// | |__ __ _ ___| |_ __| |_ _ _ __ ___ __ _| | ___(_)_ __ ___ _ __ | |(_)_ __ | | __
// | '_ \ / _` / __| __/ _` | | | | '_ ` _ \ / _` | |/ _ \ | '_ \ / _ \ '_ \ | || | '_ \| |/ /
// | | | | (_| \__ \ || (_| | |_| | | | | | | (_| | | __/ | | | | __/ | | |_| || | | | | <
// |_| |_|\__,_|___/\__\__,_|\__,_|_| |_| |_|\__,_|_|\___|_|_| |_|\___|_| |_(_)_||_|_| |_|_|\_\
D("hastdumaleinen.link", REG_OVH, DnsProvider(DSP_OVH),
all_defaults("hastdumaleinen.link", true),
TXT("direct", "v=spf1 mx -all"),
);
// _ _ _ _ _ _ // _ _ _ _ _ _
// _ __ ___(_) |_ __ _ _ __ | | __ _ __ _ ___ ___ _ __ __ _ _ __ (_) ___ _ __ | |__ _ _ _ __ __ _ __| | ___ // _ __ ___(_) |_ __ _ _ __ | | __ _ __ _ ___ ___ _ __ __ _ _ __ (_) ___ _ __ | |__ _ _ _ __ __ _ __| | ___

View file

@ -0,0 +1,16 @@
---
emgauwa_website_svc:
domain: "{{ all_services | service_get_domain(service_name) }}"
caddy_default: false
caddy_extra: |
handle_path /pkl/* {
reverse_proxy https://emgauwa-website.serguzim.me.s3-website.nl-ams.scw.cloud {
transport http {
tls_insecure_skip_verify
}
}
}
handle / {
redir https://git.serguzim.me/emgauwa/?utm_source=emgauwa.app
}

View file

@ -0,0 +1,3 @@
---
- name: Restart service {{ service_name }}
ansible.builtin.include_tasks: tasks/restart-service.yml

View file

@ -0,0 +1,11 @@
---
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
- name: Deploy {{ service_name }}
vars:
svc: "{{ emgauwa_website_svc }}"
block:
- name: Import tasks to template the site for the reverse proxy
ansible.builtin.include_tasks: tasks/steps/template-site-config.yml
when: svc.domain is defined

View file

@ -4,7 +4,7 @@ shlink_geolite_key: "{{ undef() }}"
shlink_svc: shlink_svc:
domain: "{{ all_services | service_get_domain(service_name) }}" domain: "{{ all_services | service_get_domain(service_name) }}"
additional_domains: additional_domains:
- "emgauwa.app" - "hastdumaleinen.link"
port: 8080 port: 8080
shlink_env: shlink_env:

View file

@ -195,6 +195,17 @@ services = {
database = false database = false
}, },
"emgauwa_website" = {
host = "node001"
dns = [{
domain = "emgauwa.app"
}]
auth = false
database = false
s3 = "external"
s3_public = true
},
"extra_services" = { "extra_services" = {
host = "node001" host = "node001"
auth = false auth = false
@ -753,8 +764,8 @@ services = {
alias = "shlink" alias = "shlink"
}, },
{ {
domain = "emgauwa.app" domain = "hastdumaleinen.link"
name = "shlink-emgauwa" name = "shlink-hastdumaleinenlink"
alias = "shlink" alias = "shlink"
} }
] ]