1. Output of caddy version
:
2.5.1
2. How I run Caddy:
Caddyfile:
<my_domain>:443 {
reverse_proxy localhost:11000
}
a. System environment:
CentOS-7
d. My complete Caddy config:
This is the autosave.json after startup (I don’t set a manual config):
{
"apps":{
"http":{
"servers":{
"srv0":{
"listen":[
":443"
],
"routes":[
{
"handle":[
{
"handler":"subroute",
"routes":[
{
"handle":[
{
"handler":"reverse_proxy",
"upstreams":[
{
"dial":"localhost:11000"
}
]
}
]
}
]
}
],
"match":[
{
"host":[
"<my_domain>.com"
]
}
],
"terminal":true
}
]
}
}
}
}
}
3. The problem I’m having:
I would like to implement a config module (see 6.) into my Caddyfile, so I do not have to care about two files at startup. Is it possible to implement this into the Caddyfile?