Skip to content

Instantly share code, notes, and snippets.

View omltcat's full-sized avatar

Phil Du omltcat

View GitHub Profile
@omltcat
omltcat / caddy_labels.md
Last active July 16, 2025 16:21
Caddy with Docker Labels: Easy config for wildcard certs and Authelia

What is this?

One great feature of caddy-docker-proxy is that you can quickly define config rules with Docker Compose labels in each containers on the fly like Traefik, instead of at a centralized place. With this feature, we can define everything in compose files, and don't ever need to mess with a config file (Caddyfile or JSON).

Taking advantage of snippets, I created this docker-compose.yaml example so that you can quickly define routing rules and add authetication like Authelia with just 3 lines of labels below each docker container you use.

With this example, should not ever need to manually edit Caddyfile config.

When you add a new container, you just need to do this:

networks:
@Kaidrick
Kaidrick / ScratchpadWindow.dlg
Last active March 12, 2023 01:58
DCS World超级航母着舰LSO评分分析插件
dialog = {
["type"] = "Window",
["params"] = {
["bounds"] = {
[1] = {
["h"] = 200,
["w"] = 350,
["x"] = 0,
["y"] = 0,
},