[fix] caddyfile

This commit is contained in:
Andy Bunce 2021-12-25 19:34:01 +00:00
parent 44d75ba59c
commit 3ea127607b
2 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,8 @@
localhost {
respond "Hello, world!"
:80, :443 {
encode zstd gzip
https://caddyserver.com/docs/caddyfile
file_server browse
}
n2-plus.local {
root site
:8080 {
respond "I am 8080"
}

View File

@ -1,8 +1,9 @@
<html>
<head>
<title>yes</title>
<title>Caddy test</title>
</head>
<body>
heloo
This is a test
<div>Page loaded at: {{now | date "Mon Jan 2 15:04:05 MST 2006"}}</div>div>
</body>
</html>