changelog shortlog graph tags branches changeset file revisions annotate raw help

Mercurial > infra > etc / caddy/Caddyfile

revision 1: 71488d7123d0
child 6: 9e1a84aa4ede
     1.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2+++ b/caddy/Caddyfile	Sat Apr 27 01:57:33 2024 +0000
     1.3@@ -0,0 +1,40 @@
     1.4+# The Caddyfile is an easy way to configure your Caddy web server.
     1.5+#
     1.6+# https://caddyserver.com/docs/caddyfile
     1.7+#
     1.8+# The configuration below serves a welcome page over HTTP on port 80.
     1.9+# To use your own domain name (with automatic HTTPS), first make
    1.10+# sure your domain's A/AAAA DNS records are properly pointed to
    1.11+# this machine's public IP, then replace the line below with your
    1.12+# domain name.
    1.13+#
    1.14+# https://caddyserver.com/docs/caddyfile/concepts#addresses
    1.15+
    1.16+{
    1.17+	# Restrict the admin interface to a local unix file socket whose directory
    1.18+	# is restricted to caddy:caddy. By default the TCP socket allows arbitrary
    1.19+	# modification for any process and user that has access to the local
    1.20+	# interface. If admin over TCP is turned on one should make sure
    1.21+	# implications are well understood.
    1.22+	admin "unix//run/caddy/admin.socket"
    1.23+}
    1.24+
    1.25+http:// {
    1.26+	# Set this path to your site's directory.
    1.27+	root * /usr/share/caddy
    1.28+
    1.29+	# Enable the static file server.
    1.30+	file_server
    1.31+
    1.32+	# Another common task is to set up a reverse proxy:
    1.33+	# reverse_proxy localhost:8080
    1.34+
    1.35+	# Or serve a PHP site through php-fpm:
    1.36+	# php_fastcgi localhost:9000
    1.37+
    1.38+	# Refer to the directive documentation for more options.
    1.39+	# https://caddyserver.com/docs/caddyfile/directives
    1.40+}
    1.41+
    1.42+# Import additional caddy config files in /etc/caddy/conf.d/
    1.43+import /etc/caddy/conf.d/*