Skip to content

Commit

Permalink
Merge pull request #154 from Raku/clean-up-caddyfile
Browse files Browse the repository at this point in the history
Clean up Caddyfile
  • Loading branch information
dontlaugh committed Feb 27, 2023
2 parents f05bc2f + 7380f0f commit 0f73ed7
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Caddyfile
Expand Up @@ -3,20 +3,14 @@


:80 {
# Set this path to your site's directory.
@htmlext {
path_regexp static (/.*)\.(html?)$
}

root * /usr/share/caddy
root * /usr/share/caddy
try_files {path}.html {path}
uri /type/* replace :: /


# Enable the static file server.
file_server

# Enable the static file server.
file_server
}

# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile

0 comments on commit 0f73ed7

Please sign in to comment.