immich: update external domain
sakura: init immich proxy traefik: add immich proxy
This commit is contained in:
parent
b769c225bc
commit
d08cd8dcd8
3 changed files with 22 additions and 1 deletions
hosts
8
hosts/sakura/services/immich-proxy.nix
Normal file
8
hosts/sakura/services/immich-proxy.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
_: {
|
||||
services.immich-public-proxy = {
|
||||
enable = true;
|
||||
port = 2284;
|
||||
openFirewall = true;
|
||||
immichUrl = "https://immich.internal.flake.sh";
|
||||
};
|
||||
}
|
|
@ -178,6 +178,13 @@
|
|||
tls.domains = [{main = "*.${pqdn}";}];
|
||||
tls.certresolver = "production";
|
||||
};
|
||||
immich-proxy = {
|
||||
rule = "Host(`immich.${pqdn}`)";
|
||||
entrypoints = ["websecure"];
|
||||
service = "immich-proxy";
|
||||
tls.domains = [{main = "*.${pqdn}";}];
|
||||
tls.certresolver = "production";
|
||||
};
|
||||
};
|
||||
services = let
|
||||
sakuraIp = "100.121.201.47:";
|
||||
|
@ -200,6 +207,7 @@
|
|||
searxng.loadBalancer.servers = [{url = "http://${sakuraIp}8100";}];
|
||||
justlog.loadBalancer.servers = [{url = "http://${sakuraIp}8025";}];
|
||||
wastebin.loadBalancer.servers = [{url = "http://${sakuraIp}8088";}];
|
||||
immich-proxy.loadBalancer.servers = [{url = "http://${sakuraIp}2284";}];
|
||||
|
||||
# tsuru
|
||||
woodpecker.loadBalancer.servers = [{url = "http://100.82.146.40:8200";}];
|
||||
|
@ -212,7 +220,7 @@
|
|||
api.insecure = false;
|
||||
global = {
|
||||
checkNewVersion = false;
|
||||
sendAnonymousUsage = true;
|
||||
sendAnonymousUsage = false;
|
||||
};
|
||||
entryPoints = {
|
||||
websecure = {
|
||||
|
|
|
@ -13,5 +13,10 @@ _: {
|
|||
database = {
|
||||
createDB = true;
|
||||
};
|
||||
settings = {
|
||||
server = {
|
||||
externalDomain = "https://immich.flake.sh";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue