nixberg / caddy

Snap of the Caddy web server
4 stars 2 forks source link

"error": "host not allowed: 192.168.1.1" #4

Open IT-Apkl opened 8 months ago

IT-Apkl commented 8 months ago

Running Ubuntu 18.04.6 LTS I've installed:

sudo snap install --edge caddy

When I access http://localhost:2019 I get returned.

{
      "error": "host not allowed: 192.168.1.1"
}
nixberg commented 8 months ago

By default, caddy only allows config access from localhost. 192.168.1.1 is a private network IP. How exactly this happened I can’t tell you, but I don’t think it’s a problem with the snap.

IT-Apkl commented 8 months ago

I'm pretty new to caddy and snap. I don't know how I'm supposed to configure any of them to make them behave like they are suppose to behave. What am I doing wrong?