2ab2950
# The Caddyfile is an easy way to configure your Caddy web server.
2ab2950
#
2ab2950
# https://caddyserver.com/docs/caddyfile
2ab2950
2ab2950
2ab2950
# The configuration below serves a welcome page over HTTP on port 80.  To use
2ab2950
# your own domain name with automatic HTTPS, ensure your A/AAAA DNS record is
2ab2950
# pointing to this machine's public IP, then replace `http://` with your domain
2ab2950
# name.  Refer to the documentation for full instructions on the address
2ab2950
# specification.
2ab2950
#
2ab2950
# https://caddyserver.com/docs/caddyfile/concepts#addresses
2ab2950
http:// {
2ab2950
2ab2950
    # Set this path to your site's directory.
2ab2950
    root * /usr/share/caddy
2ab2950
2ab2950
    # Enable the static file server.
2ab2950
    file_server
2ab2950
2ab2950
    # Another common task is to set up a reverse proxy:
2ab2950
    # reverse_proxy localhost:8080
2ab2950
2ab2950
    # Or serve a PHP site through php-fpm:
2ab2950
    # php_fastcgi localhost:9000
2ab2950
2ab2950
    # Refer to the directive documentation for more options.
2ab2950
    # https://caddyserver.com/docs/caddyfile/directives
2ab2950
2ab2950
}
2ab2950
2ab2950
2ab2950
# As an alternative to editing the above site block, you can add your own site
2ab2950
# block files in the Caddyfile.d directory, and they will be included as long
2ab2950
# as they use the .caddyfile extension.
2ab2950
import Caddyfile.d/*.caddyfile