-
Notifications
You must be signed in to change notification settings - Fork 0
/
Caddyfile
52 lines (42 loc) · 1.43 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
home.teratux.com { #replace domain.com with your site
# The below listed starup command opens php when you open Caddy Server
# startup /caddy/php/php-cgi -b 127.0.0.1:9000 &
# Sets the root folder for your website
ext .html .htm .php
root /caddy/www
gzip
# This is an example for accessing sonarr at http://domain.com/sonarr but
# can be modified for many other similar services. Remember you have a setting in these
# apps where you tell it where the proxy is located for it to be able to find resources.
# In this case that blank would be filled in with /sonarr
proxy / dockerhost:32400 {
transparent
}
proxy /tv dockerhost:8989 {
transparent
}
proxy /movies dockerhost:7878 {
transparent
}
proxy /request dockerhost:3579 {
transparent
}
proxy /monitor dockerhost:8181 {
transparent
}
proxy /portainer dockerhost:9000 {
transparent
}
}
# this block would also access sonarr service but would do so as http://sonarr.domain.com
# This option also requires additional steps at the DNS level to make sure sonarr.domain.com points at this server.
# If this option is used in place of the above version there is no need to fill in the proxy setting as outlined above
# If that setting remains then the site would not work as expected.
### Remove the # at the begninning of the lines below to use this option
# sonarr.domain.com {
# gzip
#
# proxy / 127.0.0.1:8989 {
# transparent
# }
#}