Add caddy default snippet
This commit is contained in:
parent
de10e8b030
commit
9edc21c59d
23 changed files with 87 additions and 55 deletions
|
@ -2,7 +2,7 @@ version: '3.2'
|
|||
|
||||
services:
|
||||
server:
|
||||
image: goauthentik.io/server:2022.8.2
|
||||
image: goauthentik.io/server:2022.10.1
|
||||
restart: unless-stopped
|
||||
command: server
|
||||
volumes:
|
||||
|
@ -21,7 +21,7 @@ services:
|
|||
- authentik
|
||||
|
||||
worker:
|
||||
image: goauthentik.io/server:2022.8.2
|
||||
image: goauthentik.io/server:2022.10.1
|
||||
restart: unless-stopped
|
||||
command: worker
|
||||
user: root
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
analytics.serguzim.me {
|
||||
import default
|
||||
reverse_proxy umami:3000
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
auth.serguzim.me {
|
||||
import default
|
||||
reverse_proxy authentik:9000
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
ci.serguzim.me {
|
||||
import default
|
||||
reverse_proxy woodpecker:8000
|
||||
}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
cloud.serguzim.me {
|
||||
import default
|
||||
|
||||
reverse_proxy host.docker.internal:3015
|
||||
|
||||
redir /.well-known/host-meta /public.php?service=host-meta 301
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
faas.serguzim.me {
|
||||
import default
|
||||
reverse_proxy host.docker.internal:8080
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
git.serguzim.me {
|
||||
import default
|
||||
header /attachments/* Access-Control-Allow-Origin *
|
||||
|
||||
reverse_proxy gitea:3000
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
graph.serguzim.me {
|
||||
import default
|
||||
reverse_proxy grafana:3000
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
hook.serguzim.me {
|
||||
import default
|
||||
reverse_proxy host.docker.internal:3002
|
||||
}
|
||||
|
|
|
@ -1,16 +1,19 @@
|
|||
matrix.msrg.cc {
|
||||
import default
|
||||
|
||||
reverse_proxy /_matrix/* synapse:8008
|
||||
reverse_proxy /_synapse/* synapse:8008
|
||||
|
||||
handle_path /admin/* {
|
||||
rewrite * {path}
|
||||
reverse_proxy synapse-admin:80
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
msrg.cc:8008,
|
||||
msrg.cc:8448,
|
||||
matrix.msrg.cc:8008,
|
||||
matrix.msrg.cc:8448 {
|
||||
import default
|
||||
reverse_proxy synapse:8008
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
media.serguzim.me {
|
||||
import default
|
||||
reverse_proxy host.docker.internal:3014
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
msrg.cc {
|
||||
import default
|
||||
header /.well-known/openpgpkey/* Access-Control-Allow-Origin *
|
||||
|
||||
rewrite * /function/webpage-msrg-cc{uri}
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
prometheus.serguzim.me {
|
||||
import default
|
||||
import auth_serguzim_me
|
||||
|
||||
reverse_proxy host.docker.internal:9090
|
||||
}
|
||||
|
||||
prometheus.internal.serguzim.net:80 {
|
||||
import default
|
||||
reverse_proxy host.docker.internal:9090
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
recipies.serguzim.me {
|
||||
import default
|
||||
reverse_proxy tandoor:80
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
registry.serguzim.me {
|
||||
import default
|
||||
reverse_proxy /metrics host.docker.internal:3029
|
||||
reverse_proxy host.docker.internal:3021
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
rss.serguzim.me {
|
||||
import default
|
||||
reverse_proxy tt-rss:80
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ serguzim.me {
|
|||
}
|
||||
|
||||
www.serguzim.me {
|
||||
import default
|
||||
rewrite * /function/webpage-serguzim-me{uri}
|
||||
reverse_proxy https://faas.serguzim.me {
|
||||
header_up Host {http.reverse_proxy.upstream.hostport}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
xn--sder-5qa.stream {
|
||||
import default
|
||||
rewrite * /function/webpage-soeder-stream{uri}
|
||||
reverse_proxy https://faas.serguzim.me {
|
||||
header_up Host {http.reverse_proxy.upstream.hostport}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
stream.serguzim.me {
|
||||
import default
|
||||
import auth_serguzim_me
|
||||
|
||||
reverse_proxy host.docker.internal:8888
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
tick.serguzim.me {
|
||||
reverse_proxy host.docker.internal:8086
|
||||
import default
|
||||
reverse_proxy influxdb:8086
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
wiki.serguzim.me {
|
||||
import default
|
||||
reverse_proxy wiki-js:3000
|
||||
}
|
||||
|
|
|
@ -13,3 +13,7 @@
|
|||
trusted_proxies private_ranges
|
||||
}
|
||||
}
|
||||
|
||||
(default) {
|
||||
encode zstd gzip
|
||||
}
|
||||
|
|
12
diagram.py
12
diagram.py
|
@ -49,8 +49,8 @@ def get_custom_icon(name, url):
|
|||
|
||||
with Diagram("serguzim.net", show=False):
|
||||
|
||||
node001 = Cluster("node001.serguzim.net")
|
||||
node002 = Cluster("node002.serguzim.net")
|
||||
node004 = Cluster("node004.serguzim.net")
|
||||
|
||||
exoscale_objectstore = ObjectStorage("Exoscale Object Storage")
|
||||
|
||||
|
@ -77,11 +77,15 @@ with Diagram("serguzim.net", show=False):
|
|||
graph = Grafana("graph.serguzim.me")
|
||||
add_to_groups(graph, services, db_users)
|
||||
|
||||
ICON_URL = "https://avatars.githubusercontent.com/u/40275816"
|
||||
harbor = Custom("registry.serguzim.me", get_custom_icon("harbor", ICON_URL))
|
||||
add_to_groups(harbor, services, db_users, objectstore_users)
|
||||
|
||||
ICON_URL = "https://avatars.githubusercontent.com/u/23747925"
|
||||
mail = Custom("mail.serguzim.me", get_custom_icon("mailcow", ICON_URL))
|
||||
add_to_groups(mail, services)
|
||||
|
||||
ICON_URL = "https://avatars.githubusercontent.com/u/8418310?s=200&v=4"
|
||||
ICON_URL = "https://avatars.githubusercontent.com/u/8418310"
|
||||
matrix = Custom("matrix.serguzim.me", get_custom_icon("matrix", ICON_URL))
|
||||
add_to_groups(matrix, services, db_users, objectstore_users)
|
||||
|
||||
|
@ -102,12 +106,12 @@ with Diagram("serguzim.net", show=False):
|
|||
proxy >> services
|
||||
objectstore_users >> exoscale_objectstore
|
||||
|
||||
with node004:
|
||||
with node001:
|
||||
services = []
|
||||
|
||||
proxy = Caddy()
|
||||
|
||||
ICON_URL = "https://www.pikpng.com/pngl/m/11-111495_minecraft-block-png-minecraft-logo-clipart.png"
|
||||
ICON_URL = "https://icon-icons.com/downloadimage.php?id=168974&root=2699/PNG/256/&file=minecraft_logo_icon_168974.png"
|
||||
minecraft = Custom("minecraft.serguzim.me", get_custom_icon("minecraft", ICON_URL))
|
||||
add_to_groups(minecraft, services)
|
||||
|
||||
|
|
Reference in a new issue