changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > etc / caddy/Caddyfile

changeset 1: 71488d7123d0
child: 9e1a84aa4ede
author: Richard Westhaver <ellis@rwest.io>
date: Sat, 27 Apr 2024 01:57:33 +0000
permissions: -rw-r--r--
description: bootstrap
1 # The Caddyfile is an easy way to configure your Caddy web server.
2 #
3 # https://caddyserver.com/docs/caddyfile
4 #
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
9 # domain name.
10 #
11 # https://caddyserver.com/docs/caddyfile/concepts#addresses
12 
13 {
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"
20 }
21 
22 http:// {
23  # Set this path to your site's directory.
24  root * /usr/share/caddy
25 
26  # Enable the static file server.
27  file_server
28 
29  # Another common task is to set up a reverse proxy:
30  # reverse_proxy localhost:8080
31 
32  # Or serve a PHP site through php-fpm:
33  # php_fastcgi localhost:9000
34 
35  # Refer to the directive documentation for more options.
36  # https://caddyserver.com/docs/caddyfile/directives
37 }
38 
39 # Import additional caddy config files in /etc/caddy/conf.d/
40 import /etc/caddy/conf.d/*