Skip to content

Commit

Permalink
fix: Update Caddyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxuan6 committed Aug 16, 2024
1 parent d265a1c commit 426eaff
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
:8080 {
root * ./
file_server

@blockedPaths {
path /service/*
}
@blockedFiles {
path /Caddyfile
path /entrypoint.sh
path /env.yaml
path /password.Caddyfile
}
respond @blockedPaths 403
respond @blockedFiles 403

@static {
file
path *.svg *.ico *.css *.js
}

header @static {
Cache-Control "public, max-age=2592000" # 缓存一个月
defer
}
}

0 comments on commit 426eaff

Please sign in to comment.