Skip to content

Commit 8193fae

Browse files
committed
Replace deprecated Caddyfile syntax
This warns for every call to the `subproject` snippet.
1 parent a0168ac commit 8193fae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/Caddyfile.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
(subproject) {
44
# Caddy doesn't know this is a directory, so redirect to trailing / as
55
# would usually happen for them.
6-
redir /{args.0} /{args.0}/ permanent
6+
redir /{args[0]} /{args[0]}/ permanent
77

8-
handle_path /{args.0}/* {
9-
root * {{ caddy.site_dir }}/{args.0}
8+
handle_path /{args[0]}/* {
9+
root * {{ caddy.site_dir }}/{args[0]}
1010
try_files {path}.html {path}
1111
file_server {
1212
hide .git

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy