1. My Caddy version (caddy version
):
#caddy version
v2.0.0-beta.15 h1:Td1esMk7bebftnoBuT3gOqUGxew5HqdIKw3s36S8tNw=
I have been reading about Proxying Windows Admin Center which lead me to Caddy and I am so far really impressed with how quick I was able to switch from an already setup NginX reverse proxied site to Caddy, but WAC is a bit more complicated.
I have read through Doesn't work when reverse proxy Windows Admin Center which seems to imply it’s working, but I am requesting a bit more guidance as to setup. Another user/thread has asked the same here → Windows Admin Center + Portainer as subdirectory - #8 by comp500
I currently have Server Core 2019 w/ WAC1910 running which I can connect to remotely just fine but am looking to setup a proxy server on a Ubuntu 18 Desktop VM. Note: I setup this using a “self generated SSL Cert” & serving over port 443. I do have my own cert I could use, but I’m fine with just having Caddy trust this self-generated cert for now/testing as well.
So far all I have done is downloaded/installed Caddy binary and then ran the following but it doesn’t work and I am at a loss (also thinking this is not correct at all!):
cat << 'EOF' >/var/www/html/wac/CaddyFile
{
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":8888"
],
"routes": [{
"match": [{
"host": [
"subdomain.domain.com"
]
}],
"handle": [{
"handler": "subroute",
"routes": [{
"handle": [{
"handler": "reverse_proxy",
"transport": {
"protocol": "http_ntlm",
"tls": {
"insecure_skip_verify": true
}
},
"upstreams": [{
"dial": "https://192.168.1.42:443"
}]
}]
}]
}]
}]
}
}
}
}
}
EOF
cd /var/www/html/wac/
Caddy Run
Taggin @matt as he seemed to be the master in the last thread!