add local proxy to immich
This commit is contained in:
parent
42cff0f304
commit
a4b2a87960
3 changed files with 19 additions and 28 deletions
|
|
@ -27,6 +27,17 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
photo = {
|
||||||
|
rule = "Host(`photo.${config.networking.hostName}.yanlincs.com`)";
|
||||||
|
service = "photo";
|
||||||
|
tls = {
|
||||||
|
certResolver = "cloudflare";
|
||||||
|
domains = [{
|
||||||
|
main = "*.${config.networking.hostName}.yanlincs.com";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
@ -46,6 +57,14 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
photo = {
|
||||||
|
loadBalancer = {
|
||||||
|
servers = [{
|
||||||
|
url = "http://127.0.0.1:5000";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
../../../modules/hyprland/system.nix
|
../../../modules/hyprland/system.nix
|
||||||
../../../modules/tailscale.nix
|
../../../modules/tailscale.nix
|
||||||
../../../modules/login-display.nix
|
../../../modules/login-display.nix
|
||||||
../../../modules/dufs.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader - standard UEFI setup
|
# Bootloader - standard UEFI setup
|
||||||
|
|
@ -243,10 +242,4 @@
|
||||||
showDiskUsage = true;
|
showDiskUsage = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.dufs = {
|
|
||||||
sharedPath = "/home/yanlin/NSFW";
|
|
||||||
user = "yanlin";
|
|
||||||
group = "users";
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -66,18 +66,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# NSFW WebDAV (dufs on thinkpad)
|
|
||||||
nsfw = {
|
|
||||||
rule = "Host(`nsfw.yanlincs.com`)";
|
|
||||||
service = "nsfw";
|
|
||||||
tls = {
|
|
||||||
certResolver = "cloudflare";
|
|
||||||
domains = [{
|
|
||||||
main = "*.yanlincs.com";
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
@ -127,15 +115,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# NSFW backend (dufs on thinkpad via WireGuard)
|
|
||||||
nsfw = {
|
|
||||||
loadBalancer = {
|
|
||||||
servers = [{
|
|
||||||
url = "http://10.2.2.30:5099";
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue