add stateful config files

This commit is contained in:
Pierre Guillod 2024-03-31 16:10:44 +02:00
parent 2516b64c33
commit ce8beec9df
9 changed files with 170 additions and 0 deletions

View file

@ -0,0 +1,19 @@
server {
server_name matrix.slowte.ch;
listen 80 default_server;
location /.well-known/matrix/server {
return 200 '{"m.server": "matrix.slowte.ch:443"}';
types { } default_type "application/json; charset=utf-8";
}
location /.well-known/matrix/client {
return 200 '{"m.homeserver": {"base_url": "https://matrix.slowte.ch"}}';
types { } default_type "application/json; charset=utf-8";
add_header "Access-Control-Allow-Origin" *;
}
location / {
return 404;
}
}

View file

@ -0,0 +1,16 @@
http:
routers:
router-homeassistant-https:
rule: Host(`home.slowte.ch`)
tls:
certResolver: letsencrypt
service: service-homeassistant
entryPoints:
- secure
- web
services:
service-homeassistant:
loadBalancer:
servers:
- url: "http://haos.hydrogen.here:8123"

View file

@ -0,0 +1,16 @@
http:
routers:
router-uptimekuma-https:
rule: Host(`up.slowte.ch`)
tls:
certResolver: letsencrypt
service: service-uptimekuma
entryPoints:
- secure
- web
services:
service-uptimekuma:
loadBalancer:
servers:
- url: "http://haos.hydrogen.here:3001"

View file

@ -0,0 +1,16 @@
http:
routers:
router-leantime-https:
rule: Host(`discover.leantime.slowte.ch`)
tls:
certResolver: letsencrypt
service: service-leantime
entryPoints:
- secure
- web
services:
service-leantime:
loadBalancer:
servers:
- url: "http://stateless.hydrogen.here:8002"

View file

@ -0,0 +1,16 @@
http:
routers:
router-n8n-https:
rule: Host(`flows.slowte.ch`)
tls:
certResolver: letsencrypt
service: service-n8n
entryPoints:
- secure
- web
services:
service-n8n:
loadBalancer:
servers:
- url: "http://stateless.hydrogen.here:8001"

View file

@ -0,0 +1,34 @@
http:
routers:
router-nextcloud-https:
rule: "Host(`cloud.slowte.ch`)"
entrypoints:
- "secure"
service: service-nextcloud
middlewares:
- nextcloud-chain
tls:
certresolver: "letsencrypt"
services:
service-nextcloud:
loadBalancer:
servers:
- url: "http://nextcloud.hydrogen.here:11000"
middlewares:
nextcloud-secure-headers:
headers:
hostsProxyHeaders:
- "X-Forwarded-Host"
referrerPolicy: "same-origin"
https-redirect:
redirectscheme:
scheme: https
nextcloud-chain:
chain:
middlewares:
- https-redirect
- nextcloud-secure-headers

View file

@ -0,0 +1,16 @@
http:
routers:
router-ntfy-https:
rule: Host(`dring.slowte.ch`)
tls:
certResolver: letsencrypt
service: service-ntfy
entryPoints:
- secure
- web
services:
service-ntfy:
loadBalancer:
servers:
- url: "http://stateless.hydrogen.here:8003"

View file

@ -0,0 +1,16 @@
http:
routers:
router-woodpecker-https:
rule: Host(`ci.slowte.ch`)
tls:
certResolver: letsencrypt
service: service-woodpecker
entryPoints:
- secure
- web
services:
service-woodpecker:
loadBalancer:
servers:
- url: "http://stateless.hydrogen.here:8000"

View file

@ -0,0 +1,21 @@
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.secure]
address = ":443"
[providers]
[providers.file]
directory = "/etc/traefik/dynamic"
[providers.docker]
exposedByDefault = false
[api]
insecure = true
dashboard = true
[certificatesResolvers.letsencrypt.acme]
email = "$ACME_EMAIL"
storage = "/etc/traefik/acme.json"
[certificatesResolvers.letsencrypt.acme.httpChallenge]
entryPoint = "web"