leilukin-tumbleblog/includes/caddyfile.conf

32 lines
576 B
Plaintext
Raw Normal View History

2024-06-20 14:10:42 +00:00
# Template to enable clean URLs for the Caddy web server v2.
#
# Usage:
#
# example.com {
# #...
# import filesystem/path/to/chyrp/caddyfile
# #...
# }
2024-09-05 17:51:48 +00:00
@twigs {
path *.twig
}
2024-06-20 14:10:42 +00:00
@admin {
path /{chyrp_path}/admin/*
file {
try_files {path} {path}/ /{chyrp_path}/admin/index.php
}
}
@chyrp {
path /{chyrp_path}/*
file {
try_files {path} {path}/ /{chyrp_path}/index.php
}
}
2024-09-05 17:51:48 +00:00
rewrite @twigs /{chyrp_path}/index.php
2024-06-20 14:10:42 +00:00
rewrite @admin {http.matchers.file.relative}
rewrite @chyrp {http.matchers.file.relative}