blob: e1bb5b1297308fa63bc7295aba75d89dc8bda041 (
plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# 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.
#
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
{
admin off
}
cdn.elenq.tech {
root * /var/www/elenq
file_server
}
ekaitz.elenq.tech {
root * /var/www/ekaitz
file_server
}
thoughts.elenq.tech {
root * /var/www/thoughts
file_server
}
publishing.elenq.tech {
root * /var/www/elenq_publishing
file_server
redir / /en
}
www.publishing.elenq.tech {
redir https://publishing.elenq.tech{uri} permanent
}
postdata.biz {
root * /var/www/postdata
file_server
redir / /es
}
www.postdata.biz {
redir https://postdata.biz{uri} permanent
}
git.elenq.tech {
@assets path /cgit.css /cgit.js /cgit.png /favicon.ico /robots.txt
handle @assets {
root * /usr/share/cgit
file_server
}
reverse_proxy unix//run/fcgiwrap.socket {
transport fastcgi {
env SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi
}
}
|