feat: Added basic_proxy

This commit is contained in:
uttarayan21
2024-11-22 11:21:53 +02:00
parent a7ae9a08be
commit f4f908c83e
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@
owner = config.users.users.nextcloud.name; owner = config.users.users.nextcloud.name;
}; };
sops.secrets."llama/user" = { sops.secrets."llama/user" = {
owner = config.users.users.llama.name; # owner = config.users.services.llama-cpp.name;
}; };
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.

View File

@@ -63,8 +63,8 @@
reverse_proxy localhost:8080 reverse_proxy localhost:8080
''; '';
virtualHosts."llama.darksailor.dev".extraConfig = '' virtualHosts."llama.darksailor.dev".extraConfig = ''
reverse_proxy localhost:3000 reverse_proxy / localhost:3000
basicauth / { basic_auth /* {
import htpasswd ${config.sops.secrets."llama/user".path} import htpasswd ${config.sops.secrets."llama/user".path}
} }
''; '';