Hi every one
I am going to set up Caddy server 2 this week end.
Would some be able to convert my caddy file from version 1 to Caddy server 2.
Thank you in advance.
address.noip.me address.com address.loginto.me address.zapto.org address.tv address.me address.zapto.org address.co.uk
on startup /caddy/php/php-cgi.exe -b 127.0.0.1:9000 &
fastcgi / 127.0.0.1:9000 php
fastcgi C/caddy/www/monitorr 127.0.0.1:9000 php
root C:\caddy\www
ext .html .htm .php
gzip
proxy /cctv http://127.0.0.1:888 {
transparent
header_upstream X-Forwarded-Host {remote}
}
proxy /calibre http://127.0.0.1:8080 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /lazy http://127.0.0.1:5299 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /jackett http://127.0.0.1:9117 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /lidarr http://127.0.0.1:9898 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /htpc http://127.0.0.1:8085 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /sabnzbd http://127.0.0.1:8087 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /radarr http://127.0.0.1:7878 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /sonarr http://127.0.0.1:8981 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /nzbhydra http://127.0.0.1:5075 {
header_upstream X-Forwarded-For {remote}
}
proxy /web http://127.0.0.1:32400 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /plexpy http://127.0.0.1:8181 {
transparent
header_upstream X-Forwarded-Host {host}
}
rewrite {
if_op or
if {>Referer} has /deluge
if {>Referer} has /localhost/themes/css/
if {>Referer} has /localhost/css/
to /deluge/{path}
}
proxy /deluge http://127.0.0.1:8112 {
without /deluge
transparent
header_upstream X-Forwarded-Host {host}
}
rewrite {
if_op or
if {>Referer} has /organizr
if {>Referer} has /localhost/themes/css/
if {>Referer} has /localhost/css/
to /organizr/{path}
}
proxy /organizr http://127.0.0.1:32771 {
without /organizr
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /nzbhydra2 127.0.0.1:5076/ {
transparent
header_upstream X-Forwarded-Host {host}
}
rewrite / {
#Rewrite URLs without trailing slash
regexp ^/nzbhydra2$
to /nzbhydra2/
}