-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCaddyfile
29 lines (24 loc) · 809 Bytes
/
Caddyfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
example.com {
# Set this path to your site's directory.
root * /usr/share/caddy
# Enable the static file server.
file_server
}
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
seafile.example.com {
reverse_proxy 127.0.0.1:8000
route /seafhttp/* {
uri strip_prefix /seafhttp
reverse_proxy 127.0.0.1:8082
}
}