Skip to content

Instantly share code, notes, and snippets.

View sascha-schieferdecker's full-sized avatar

Sascha Schieferdecker sascha-schieferdecker

View GitHub Profile
@omltcat
omltcat / caddy_labels.md
Last active December 12, 2025 18:46
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:
@wazum
wazum / StaticPaddedRangeMapper.php
Created January 28, 2019 13:40
TYPO3 CMS 9.5 StaticPaddedRangeMapper Routing Aspect
<?php
declare(strict_types=1);
namespace Vendor\Extension\Routing\Aspect;
use TYPO3\CMS\Core\Routing\Aspect\StaticRangeMapper;
/**
* Class StaticPaddedRangeMapper
* @package Vendor\Extension\Routing\Aspect
@sebsel
sebsel / _ide_helper_generator.php
Last active November 5, 2020 09:32
Kirby IDE Helper
<?php define('DS', DIRECTORY_SEPARATOR);
// Set this one to your own blueprint root if you changed it.
$blueprint_root = __DIR__ . DS . 'site' . DS . 'blueprints';
// For Kirby 3, see the comment below.
/**
* === Let's build an IDE-helper for Kirby for PHPStorm!
*