sbin/docker/Caddyfile
author ymh <ymh.work@gmail.com>
Wed, 18 Dec 2024 15:24:41 +0100
changeset 1584 257c14dae52a
parent 1571 4a1e6952afe5
permissions -rw-r--r--
Added tag V09.006 for changeset 459a88818bec
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1558
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
polemictweet.test {
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
    tls internal
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
    root * /var/www/html
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
    @main path_regexp ^/(.+)/([0-9A-Za-z_-]+)\.php$
1571
4a1e6952afe5 Improve on mastodon management
ymh <ymh.work@gmail.com>
parents: 1558
diff changeset
     6
    @phpfile `file() && path('*.php')`
1558
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
1571
4a1e6952afe5 Improve on mastodon management
ymh <ymh.work@gmail.com>
parents: 1558
diff changeset
     8
    rewrite /sitemap.xml /sitemap.php
1558
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
1571
4a1e6952afe5 Improve on mastodon management
ymh <ymh.work@gmail.com>
parents: 1558
diff changeset
    10
    handle @phpfile {
4a1e6952afe5 Improve on mastodon management
ymh <ymh.work@gmail.com>
parents: 1558
diff changeset
    11
        php_fastcgi php-fpm:9000	
4a1e6952afe5 Improve on mastodon management
ymh <ymh.work@gmail.com>
parents: 1558
diff changeset
    12
    }
1558
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    handle {
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
      root * /var/www/html
1571
4a1e6952afe5 Improve on mastodon management
ymh <ymh.work@gmail.com>
parents: 1558
diff changeset
    16
      rewrite @main /{re.2}.php?{query}&rep={re.1}
1558
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
      php_fastcgi php-fpm:9000
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
      file_server
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
    }
761ba7426984 upgrade metadataplayer and add a sitemap
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
1571
4a1e6952afe5 Improve on mastodon management
ymh <ymh.work@gmail.com>
parents: 1558
diff changeset
    21
}