forked from xombiemp/ultimate-torrent-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaddy.conf
65 lines (53 loc) · 1.02 KB
/
caddy.conf
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
https://yourdomain.com {
root /var/www
gzip
header / Cache-Control "no-cache"
fastcgi / /var/run/php-fpm/php-fpm.sock php
jwt {
path /
except /favicon.ico
except /public
except /tautulli/api
redirect /login?backTo={rewrite_uri}
}
login {
htpasswd file=/etc/caddy/passwd
redirect_check_referer false
}
rewrite {
r /logout$
to /login?logout=true
}
status 404 /notfound
rewrite {
r /\.(git|htaccess)|/rutorrent/(conf|share)
to /notfound
}
proxy /sonarr 127.0.0.1:8989 {
transparent
}
proxy /radarr 127.0.0.1:7878 {
transparent
}
proxy /lidarr 127.0.0.1:8686 {
transparent
}
proxy /tautulli 127.0.0.1:8181 {
transparent
}
redir /sync /sync/
proxy /sync/ 127.0.0.1:8888/gui/ {
without /sync/
transparent
}
proxy /gui 127.0.0.1:8888 {
transparent
}
}
http://localhost {
root /var/www
gzip
header / Cache-Control "no-cache"
fastcgi / /var/run/php-fpm/php-fpm.sock php
}