mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 10:50:13 +00:00
Compare commits
1 Commits
master
...
immich-pro
Author | SHA1 | Date | |
---|---|---|---|
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"; } ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user