--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/docker/Caddyfile Tue Sep 03 11:09:40 2024 +0200
@@ -0,0 +1,21 @@
+polemictweet.test {
+ tls internal
+ root * /var/www/html
+
+ @main path_regexp ^/(.+)/([0-9A-Za-z_-]+)\.php$
+ @phpfile `file() && path('*.php')`
+
+ rewrite /sitemap.xml /sitemap.php
+
+ handle @phpfile {
+ php_fastcgi php-fpm:9000
+ }
+
+ handle {
+ root * /var/www/html
+ rewrite @main /{re.2}.php?rep={re.1}
+ php_fastcgi php-fpm:9000
+ file_server
+ }
+
+}
\ No newline at end of file