1 # The Caddyfile is an easy way to configure your Caddy web server.
3 # https://caddyserver.com/docs/caddyfile
5 # The configuration below serves a welcome page over HTTP on port 80.
6 # To use your own domain name (with automatic HTTPS), first make
7 # sure your domain's A/AAAA DNS records are properly pointed to
8 # this machine's public IP, then replace the line below with your
11 # https://caddyserver.com/docs/caddyfile/concepts#addresses
14 # Restrict the admin interface to a local unix file socket whose directory
15 # is restricted to caddy:caddy. By default the TCP socket allows arbitrary
16 # modification for any process and user that has access to the local
17 # interface. If admin over TCP is turned on one should make sure
18 # implications are well understood.
19 admin "unix//run/caddy/admin.socket"
23 # Set this path to your site's directory.
24 root * /usr/share/caddy
26 # Enable the static file server.
29 # Another common task is to set up a reverse proxy:
30 # reverse_proxy localhost:8080
32 # Or serve a PHP site through php-fpm:
33 # php_fastcgi localhost:9000
35 # Refer to the directive documentation for more options.
36 # https://caddyserver.com/docs/caddyfile/directives
39 # Import additional caddy config files in /etc/caddy/conf.d/
40 import /etc/caddy/conf.d/*