Caddyfile (view raw)
1:80 {
2 # Set this path to your site's directory.
3 root * /var/www/html
4
5 # Enable the static file server.
6 file_server
7
8 redir / /README.md
9
10 templates
11 @markdown path *.md
12 rewrite @markdown /template.html
13
14 # Another common task is to set up a reverse proxy:
15 # reverse_proxy localhost:8080
16
17 # Or serve a PHP site through php-fpm:
18 # php_fastcgi localhost:9000
19}
20