asxpio: route asxp.io and admin.asxp.io to the service on asxpio-services
All checks were successful
nixos / nixos (push) Successful in 24s
All checks were successful
nixos / nixos (push) Successful in 24s
Priority 2000 over the container's labels until it is removed; admin.asxp.io keeps the internal-only allowlist (WireGuard + VPC). The failed-login alert and the Security dashboard count asxpio's routers by their new names, and the dashboard's Grafana panel by grafana@file, the name it has had since Grafana became a native service. Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
0ee1c600e6
commit
05ed9f5375
3 changed files with 18 additions and 3 deletions
|
|
@ -534,7 +534,7 @@ groups:
|
||||||
- refId: A
|
- refId: A
|
||||||
relativeTimeRange: { from: 600, to: 0 }
|
relativeTimeRange: { from: 600, to: 0 }
|
||||||
datasourceUid: loki
|
datasourceUid: loki
|
||||||
model: { refId: A, expr: "sum(count_over_time({job=\"traefik-access\"} |= `\"asxpio@docker\"` |~ `\"POST /admin/login HTTP/[0-9.]+\" (401|429) ` [10m]))", queryType: instant, intervalMs: 60000, maxDataPoints: 43200 }
|
model: { refId: A, expr: "sum(count_over_time({job=\"traefik-access\"} |~ `\"asxpio(-admin)?@file\"` |~ `\"POST /admin/login HTTP/[0-9.]+\" (401|429) ` [10m]))", queryType: instant, intervalMs: 60000, maxDataPoints: 43200 }
|
||||||
- refId: C
|
- refId: C
|
||||||
datasourceUid: __expr__
|
datasourceUid: __expr__
|
||||||
model: { refId: C, type: threshold, expression: A, conditions: [ { evaluator: { type: gt, params: [4] } } ] }
|
model: { refId: C, type: threshold, expression: A, conditions: [ { evaluator: { type: gt, params: [4] } } ] }
|
||||||
|
|
|
||||||
|
|
@ -2068,7 +2068,7 @@
|
||||||
"type": "loki",
|
"type": "loki",
|
||||||
"uid": "loki"
|
"uid": "loki"
|
||||||
},
|
},
|
||||||
"expr": "sum(count_over_time({job=\"traefik-access\"} |= `\"grafana@docker\"` |~ `\"POST /login HTTP/[0-9.]+\" 401 ` [$__interval]))",
|
"expr": "sum(count_over_time({job=\"traefik-access\"} |= `\"grafana@file\"` |~ `\"POST /login HTTP/[0-9.]+\" 401 ` [$__interval]))",
|
||||||
"legendFormat": "Grafana",
|
"legendFormat": "Grafana",
|
||||||
"refId": "B",
|
"refId": "B",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
|
|
@ -2079,7 +2079,7 @@
|
||||||
"type": "loki",
|
"type": "loki",
|
||||||
"uid": "loki"
|
"uid": "loki"
|
||||||
},
|
},
|
||||||
"expr": "sum(count_over_time({job=\"traefik-access\"} |= `\"asxpio@docker\"` |~ `\"POST /admin/login HTTP/[0-9.]+\" (401|429) ` [$__interval]))",
|
"expr": "sum(count_over_time({job=\"traefik-access\"} |~ `\"asxpio(-admin)?@file\"` |~ `\"POST /admin/login HTTP/[0-9.]+\" (401|429) ` [$__interval]))",
|
||||||
"legendFormat": "asxp.io admin",
|
"legendFormat": "asxp.io admin",
|
||||||
"refId": "C",
|
"refId": "C",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
|
|
|
||||||
|
|
@ -241,6 +241,21 @@ in
|
||||||
];
|
];
|
||||||
url = "http://10.10.0.20:3002";
|
url = "http://10.10.0.20:3002";
|
||||||
};
|
};
|
||||||
|
asxpio = {
|
||||||
|
hosts = [
|
||||||
|
"asxp.io"
|
||||||
|
"www.asxp.io"
|
||||||
|
];
|
||||||
|
url = "http://10.10.0.20:3001";
|
||||||
|
priority = 2000; # over the container's labels until it is removed
|
||||||
|
};
|
||||||
|
# Superuser logins only work here (SUPERUSER_HOST): WireGuard + VPC
|
||||||
|
asxpio-admin = {
|
||||||
|
hosts = [ "admin.asxp.io" ];
|
||||||
|
url = "http://10.10.0.20:3001";
|
||||||
|
middlewares = [ "internal-only" ];
|
||||||
|
priority = 2000;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.traefik.extraGroups = [ "podman" ];
|
users.users.traefik.extraGroups = [ "podman" ];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue