Add faas to ansible

This commit is contained in:
Tobias Reisinger 2023-12-10 23:49:02 +01:00
parent 063b422426
commit 2a3fe723ab
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
13 changed files with 84 additions and 52 deletions
_ansible/roles/faas

View file

@ -0,0 +1,6 @@
---
- name: Deploy {{ svc.name }}
tags:
- faas
block:
- import_tasks: steps/template-site-config.yml

View file

@ -0,0 +1,31 @@
svc:
name: faas
domain: faas.serguzim.me
docker_host: host.docker.internal
port: 8080
extra_svcs:
- domain: link.serguzim.me
faas_function: url-mapper
- domain: msrg.cc
faas_function: webpage-msrg-cc
www_domain: true
caddy_extra: |
header /.well-known/* Access-Control-Allow-Origin *
handle /.well-known/webfinger {
map {query.resource} {user} {
acct:tobias@msrg.cc serguzim
acct:serguzim@msrg.cc serguzim
}
rewrite * /.well-known/webfinger/{user}.json
import faas webpage-msrg-cc
}
- domain: serguzim.me
faas_function: webpage-serguzim-me
www_domain: true
hsts: true
- domain: team-leon.eu
faas_function: webpage-team-leon-eu
www_domain: true
- domain: xn--sder-5qa.stream
faas_function: webpage-soeder-stream