hartmantis / nasty

Apache License 2.0
1 stars 0 forks source link

Return a 403 for /metrics instead of 404 + clean up #87

Closed hartmantis closed 7 months ago

hartmantis commented 7 months ago

Because of the way NixOS merges configs, services can "register" themselves with Traefik instead of everything being defined in Traefik's module.

Returning a 403 forbidden is more correct. The allowlist middleware won't accept an empty IP list or I'd have forbidden it from everywhere.

Also removes the now-redundant TLS configs since they're now being set globally in the static config.