Hi @Whitestrake, thank you for the support, i really appreciate it.
Okay, so i try to run it on my host and with radarr that supports url base path and its more simple than qbittorrent, i suppose, but i got this when i run $ caddy -conf /share/CACHEDEV1_DATA/.qpkg/Caddy/caddy.conf
$ caddy -conf /share/CACHEDEV1_DATA/.qpkg/Caddy/caddy.conf
/share/CACHEDEV1_DATA/.qpkg/Caddy/caddy.conf:13 - Error during parsing: Unknown directive 'transparent`
I have to ip’s pointing to my host (myurl.myqnapcloud.com):
- 192.168.xx.x50 (Main getway)
- 192.168.xx.x51 (Running a vpn)
So instead of “localhost” i assume that i need to put the first ip.
My caddy.conf in /share/CACHEDEV1_DATA/.qpkg/Caddy/caddy.conf is:
myurl.myqnapcloud.com
root /home/Qhttpd/
gzip
proxy /radarr http://192.168.xx.x50:7878 { # https://radarr.video/
transparent
header_upstream X-Forwarded-Host {host}
}
proxy / http://192.168.xx.x50:8080 { # blank
transparent
header_upstream X-Forwarded-Host {host}
}
}
The issue above its because of the “transparent” but i don’t know how to solve it. I puted this caddyfile based on this post: Caddy on QNAP - set up reverse proxy.
When i run just $ caddy
i got:
Activating privacy features… done.
Serving HTTP on port 2015
http://:2015
WARNING: File descriptor limit 1024 is too low for production servers. At least 8192 is recommended. Fix with ulimit -n 8192
.
When i pull myurl.myqnapcloud.com:2015 i got “404 not found” but caddy is running.
But my host is “missing an index file” based on this Beginner Tutorial
I try to follow that guide to resolve the issue so i run $ caddy -host myurl.myqnapcloud.com
and i got:
$ caddy -host myurl.myqnapcloud.com
Activating privacy features… 2019/11/17 16:31:46 get directory at ‘https://acme-v02.api.letsencrypt.org/directory’: acme: error: 0 :: GET :: https://acme-v02.api.letsencrypt.org/directory :: urn:acme:error:serverInternal :: The service is down for maintenance or had an internal error. Check https://letsencrypt.status.io/ for more details., url:
"This shouldn’t be required. You probably need to sort out your certificate storage. The
CADDYPATH (defaults to
$home/.caddy ) must be preserved between starts. If it is being preserved, Caddy will keep using the valid certificates it’s already acquired, won’t have to acquire new ones every session, and won’t run into LetsEncrypt rate limits (unless you legitimately add so many domains that it clogs up LE)."
So i only need to run $ caddy - conf /path/caddyfile
one time for each host? I don’t need to run it each time i edit the caddyfile ? It makes sense.
So when i need to edit caddyfile i just stop caddy from running and then i run $ caddy
again and caddy will pull that caddyfile in that path?
So with this caddyfile i can´t run caddy on my host. I try to put myurl.myqnapcloud.com instead of that ip but it’s the same.
PS: Sorry for the bad english.