mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
fix: apparently ':' is not a great character for basic auth
This commit is contained in:
parent
d6af975817
commit
06d5d26dde
4 changed files with 3 additions and 4 deletions
|
@ -115,7 +115,7 @@ in {
|
||||||
url = "https://${sentinelCfg.proxiedDomains.loki}";
|
url = "https://${sentinelCfg.proxiedDomains.loki}";
|
||||||
orgId = 1;
|
orgId = 1;
|
||||||
basicAuth = true;
|
basicAuth = true;
|
||||||
basicAuthUser = "${nodeName}:grafana-loki-basic-auth-password";
|
basicAuthUser = "${nodeName}+grafana-loki-basic-auth-password";
|
||||||
secureJsonData.basicAuthPassword = "$__file{${config.age.secrets.grafana-loki-basic-auth-password.path}}";
|
secureJsonData.basicAuthPassword = "$__file{${config.age.secrets.grafana-loki-basic-auth-password.path}}";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -41,7 +41,7 @@ in {
|
||||||
file,
|
file,
|
||||||
}: ''
|
}: ''
|
||||||
echo " -> Aggregating [32m"${lib.escapeShellArg host}":[m[33m"${lib.escapeShellArg name}"[m" >&2
|
echo " -> Aggregating [32m"${lib.escapeShellArg host}":[m[33m"${lib.escapeShellArg name}"[m" >&2
|
||||||
echo -n ${lib.escapeShellArg host}":"${lib.escapeShellArg name}" "
|
echo -n ${lib.escapeShellArg host}"+"${lib.escapeShellArg name}" "
|
||||||
${decrypt} ${lib.escapeShellArg file} \
|
${decrypt} ${lib.escapeShellArg file} \
|
||||||
| ${pkgs.caddy}/bin/caddy hash-password --algorithm bcrypt \
|
| ${pkgs.caddy}/bin/caddy hash-password --algorithm bcrypt \
|
||||||
|| die "Failure while aggregating caddy basic auth hashes"
|
|| die "Failure while aggregating caddy basic auth hashes"
|
||||||
|
@ -55,7 +55,6 @@ in {
|
||||||
useACMEHost = sentinelCfg.lib.extra.matchingWildcardCert lokiDomain;
|
useACMEHost = sentinelCfg.lib.extra.matchingWildcardCert lokiDomain;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
import common
|
import common
|
||||||
skip_log
|
|
||||||
basicauth {
|
basicauth {
|
||||||
import ${sentinelCfg.age.secrets.loki-basic-auth-hashes.path}
|
import ${sentinelCfg.age.secrets.loki-basic-auth-hashes.path}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -48,7 +48,7 @@ in {
|
||||||
|
|
||||||
clients = [
|
clients = [
|
||||||
{
|
{
|
||||||
basic_auth.username = "${nodeName}:promtail-loki-basic-auth-password";
|
basic_auth.username = "${nodeName}+promtail-loki-basic-auth-password";
|
||||||
basic_auth.password_file = config.age.secrets.promtail-loki-basic-auth-password.path;
|
basic_auth.password_file = config.age.secrets.promtail-loki-basic-auth-password.path;
|
||||||
url = "https://${nodes.${cfg.proxy}.config.proxiedDomains.loki}/loki/api/v1/push";
|
url = "https://${nodes.${cfg.proxy}.config.proxiedDomains.loki}/loki/api/v1/push";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue