Skip to content

Commit

Permalink
Allow browsing assets
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Jan 13, 2024
1 parent bd49cc6 commit 32b14ab
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ header {

root * /srv/http/phil.red
encode gzip
try_files {path} /index.html
file_server
handle /assets/* {
file_server browse
}
handle {
try_files {path} /index.html
file_server
}

# Import additional caddy config files in /etc/caddy/conf.d/
import /etc/caddy/conf.d/*

0 comments on commit 32b14ab

Please sign in to comment.