Caddyfile 774 B

1234567891011121314151617181920212223242526
  1. # The Caddyfile is an easy way to configure your Caddy web server.
  2. #
  3. # Unless the file starts with a global options block, the first
  4. # uncommented line is always the address of your site.
  5. #
  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 ":80" below with your
  9. # domain name.
  10. :80 {
  11. # Set this path to your site's directory.
  12. root * /data/wwwroot/default
  13. # Enable the static file server.
  14. file_server
  15. # Another common task is to set up a reverse proxy:
  16. # reverse_proxy localhost:8080
  17. # Or serve a PHP site through php-fpm:
  18. # php_fastcgi localhost:9000
  19. }
  20. # Refer to the Caddy docs for more information:
  21. # https://caddyserver.com/docs/caddyfile