feat: Added basic_proxy
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user