-
Notifications
You must be signed in to change notification settings - Fork 0
/
Caddyfile
176 lines (152 loc) · 3.37 KB
/
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
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
(common) {
errors {
404 /root/.caddy/404.html
}
}
new.serben.tk, www.serben.tk {
redir https://serben.tk{uri}
}
andrei.serben.tk {
redir https://gion.serben.tk{uri}
}
edoardo.serben.tk {
redir https://edomora97.serben.tk{uri}
}
badin.serben.tk {
redir https://badinl.serben.tk{uri}
}
giorgio.serben.tk {
redir https://dabolus.serben.tk{uri}
}
sergiu.serben.tk {
redir https://vidrez.serben.tk{uri}
}
serben.ga {
redir / https://serben.tk{uri} 307
}
*.serben.ga {
tls {
dns cloudflare
}
redir / https://{label1}.serben.tk{uri} 307
}
serben.tk {
import common
errors /root/.caddy/logs/docker.error.log
log /root/.caddy/logs/docker.access.log
root /srv
}
docker.serben.tk {
import common
errors /root/.caddy/logs/docker.error.log
log /root/.caddy/logs/docker.access.log
proxy /api/websocket 172.18.0.2:9000 {
websocket
}
proxy / 172.18.0.2:9000 {
transparent
}
}
torrent.serben.tk {
import common
errors /root/.caddy/logs/torrent.error.log
log /root/.caddy/logs/torrent.access.log
proxy / serben.tk:3000 {
transparent
}
}
downloads.serben.tk {
import common
errors /root/.caddy/logs/downloads.error.log
log /root/.caddy/logs/downloads.access.log
filemanager / /torrent/torrents {
database /root/.caddy/filemanager/downloads.serben.tk.db
allow_commands false
}
}
download.serben.tk {
import common
errors /root/.caddy/logs/download.error.log
log /root/.caddy/logs/download.access.log
root /torrent
browse
}
phpmyadmin.serben.tk {
import common
errors /root/.caddy/logs/phpmyadmin.error.log
log /root/.caddy/logs/phpmyadmin.access.log
proxy / 172.18.0.7:80 {
transparent
}
}
openarena.serben.tk {
import common
browse /
errors /root/.caddy/logs/generic.error.log
log /root/.caddy/logs/generic.access.log
root /volumes/openarena
}
status.serben.tk {
redir https://p.datadoghq.com/sb/a2ba14d75-e14f697f19
}
status.docker.serben.tk {
redir https://p.datadoghq.com/sb/a2ba14d75-d9ce6c93a86ee51e45da444da2cc0896
}
(user) {
import common
browse /
errors /root/.caddy/logs/generic.error.log
log /root/.caddy/logs/generic.access.log
fastcgi / 127.0.0.1:9000 php {
env CLOUDFLARE_API_KEY hidden
env DOCUMENT_ROOT /volumes/homes/{label1}/{label1}
env DOCUMENT_URI {path}
env REQUEST_URI {path}
env SCRIPT_NAME {path}
env PHP_SELF {path}
}
on startup php-fpm7
}
edomora97.serben.tk {
root /volumes/homes/edomora97/edomora97/public_html
import user
}
gion.serben.tk {
root /volumes/homes/gion/gion/public_html
import user
}
cive.serben.tk {
root /volumes/homes/cive/cive/public_html
import user
}
badinl.serben.tk {
root /volumes/homes/badinl/badinl/public_html
import user
}
rossi.serben.tk {
root /volumes/homes/rossi/rossi/public_html
import user
}
vidrez.serben.tk {
root /volumes/homes/vidrez/vidrez/public_html
import user
}
furlan.serben.tk {
root /volumes/homes/furlan/furlan/public_html
import user
}
dabolus.serben.tk {
root /volumes/homes/dabolus/dabolus/public_html
import user
}
*.serben.tk, *.new.serben.tk {
tls {
dns cloudflare
}
import common
root /404
}
*:80 {
import common
root /404
}