Brad_K
(Brad Knorr)
February 7, 2025, 7:19pm
1
1. The problem I’m having:
How do I secure the api admin endpoint if I bind it to an ip/port? Is there a way to add username/password?
I want to use the api endpoint to configure caddy with reverse proxy routes from my website. I need to create a route for each customer. It is a secure internal network but it seems strange not to be able to configure additional auth on the end point?
Brad
Mohammed90
(Mohammed Al Sahaf)
February 7, 2025, 9:17pm
2
Your other topic shows you’ve figured it out
1. The problem I’m having:
I am trying to setup remote admin endpoint with cert auth. I am getting a json validation error, when copying the configuration directly from the documentation and editing it for my values.
2. Error messages and/or full log output:
When I issue the command
caddy validate --config caddyconfig.json
I get the following output.
root@caddy1:/etc/caddy# caddy validate --config caddyconfig.json
2025/02/07 20:36:04.937 INFO using config from file {"file": "caddyconfig.…
I discuss it here as part of a larger subject.
Assuming your organization has two different teams who are responsible for two different subdomains besides the main domain name, you would have a Caddyfile that is more of less as follows:
example.com {
root sites/root
file_server
}
team-1.example.com {
root sites/team-1
file_server
}
team-2.example.com {
root sites/team-2
file_server
}
If team-1 would like to update their service to be proxying to an upstream rather than serving files, they would have to reach the singular team who i…
system
(system)
Closed
March 9, 2025, 9:17pm
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.