Immich: Difference between revisions
drop 24.05 compat |
Add nginx reverse proxy example |
||
Line 19: | Line 19: | ||
If you are using the default <code>immich</code> user, you can use the following snippet to enable VA-API support.{{file|/etc/nixos/configuration.nix|nix|3=users.users.immich.extraGroups = [ "video" "render" ]; | If you are using the default <code>immich</code> user, you can use the following snippet to enable VA-API support.{{file|/etc/nixos/configuration.nix|nix|3=users.users.immich.extraGroups = [ "video" "render" ]; | ||
}} | |||
=== Reverse Proxy === | |||
A typical [[nginx]] configuration to multiplex Immich with other web services might look like: | |||
{{file|/etc/nixos/configuration.nix|nix|3=services.nginx.virtualHosts."immich.example.com" = { | |||
enableACME = true; | |||
forceSSL = true; | |||
locations."/" = { | |||
proxyPass = "http://[::1]:${toString config.services.immich.port}"; | |||
proxyWebsockets = true; | |||
}; | |||
}; | |||
}} | }} | ||
[[Category:Server]] | [[Category:Server]] | ||
[[Category:Web Applications]] | [[Category:Web Applications]] |