nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

commit 28901ea5320255f4df529d675c9cc7c925f73cff
parent bc2da37186b398313a422427f1d87d98090ca2b0
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Wed,  6 Aug 2025 09:40:01 +0100

Fix basic_auth labels on h5ai

You don't just pass it through as plaintext, apparently

Diffstat:
Mcommon/docker.nix | 3+--
Mvariables.sample.nix | 2+-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/common/docker.nix b/common/docker.nix @@ -85,8 +85,7 @@ autoStart = true; dependsOn = [ "caddy" ]; image = "awesometic/h5ai"; - # labels = { "caddy" = "pub.${domain}"; "caddy.reverse_proxy" = "{{upstreams 80}}"; "caddy.basic_auth" = "/.todo/*"; "caddy.basicauth.${username}" = "${htpasswd}";}; - labels = { "caddy" = "pub.${domain}"; "caddy.reverse_proxy" = "{{upstreams 80}}"; }; + labels = { "caddy" = "pub.${domain}"; "caddy.reverse_proxy" = "{{upstreams 80}}"; "caddy.basic_auth" = "/.tank/*"; "caddy.basic_auth.${username}" = "${htpasswd}";}; networks = [ "proxy" ]; # volumes = [ "/home/${username}/vault/pub:/h5ai:ro" "/home/${username}/vault/src/nix-configs/resources/h5ai.css:/config/h5ai/_h5ai/public/css/styles.css" ]; volumes = [ "/home/${username}/vault/pub:/h5ai" "/tank/complete:/h5ai/.tank" ]; diff --git a/variables.sample.nix b/variables.sample.nix @@ -8,7 +8,7 @@ let sshkey = "ssh-rsa yourkeyhere"; sshport = 2222; timezone = "Europe/London"; - htpasswd = ""; + htpasswd = ""; # caddy hash-password --plaintext "yourpassword" | base64 -w0 vpnusername = ""; vpnpassword = ""; todosecret = "";