mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-28 21:12:02 +00:00
immich proxy
This commit is contained in:
parent
ca6c275cd8
commit
f5c48b41fa
@ -16,6 +16,7 @@
|
||||
./cloudflare.nix
|
||||
./filebrowser.nix
|
||||
./identity.nix
|
||||
./immich-proxy.nix
|
||||
./immich.nix
|
||||
./irc.nix
|
||||
./gitea-runner.nix
|
||||
|
23
modules/nixos/services/immich-proxy.nix
Normal file
23
modules/nixos/services/immich-proxy.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
|
||||
options = {
|
||||
immich-proxy.enable = lib.mkEnableOption "Immich proxy";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.services.immich-proxy.enable {
|
||||
caddy.routes = [
|
||||
{
|
||||
match = [ { host = [ config.hostnames.photosProxy ]; } ];
|
||||
handle = [
|
||||
{
|
||||
handler = "reverse_proxy";
|
||||
upstreams = [ { dial = "${config.hostnames.photosBackend}:443"; } ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user