fix photoprism config file path issue
This commit is contained in:
parent
f087d7d933
commit
9c86422497
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "Nix Config";
|
||||
description = "Nixos Config";
|
||||
|
||||
inputs = {
|
||||
# Nixpkgs
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
{config, ...}: {
|
||||
sops.secrets = {
|
||||
"software/photoprism" = {
|
||||
path = "/run/secrets/photoprism/config.yaml";
|
||||
mode = "0600";
|
||||
path = "/etc/photoprism/options.yml";
|
||||
};
|
||||
};
|
||||
virtualisation.arion = {
|
||||
|
@ -11,7 +10,7 @@
|
|||
settings = {
|
||||
services.photoprism.service = {
|
||||
ports = [
|
||||
"8096:8096"
|
||||
"2342:2342"
|
||||
];
|
||||
container_name = "photoprism";
|
||||
image = "photoprism/photoprism:latest";
|
||||
|
@ -21,10 +20,10 @@
|
|||
"/media/photos/sam/originals:/photoprism/originals"
|
||||
"/media/photos/sam/imports:/photoprism/import"
|
||||
"/srv/docker/photoprism/storage:/photoprism/storage"
|
||||
"/run/secrets/photoprism/config.yaml:/etc/photoprism/config.yaml"
|
||||
"${config.sops.secrets."software/photoprism".path}:/etc/photoprism/options.yml"
|
||||
];
|
||||
environment = {
|
||||
PHOTOPRISM_CONFIG_PATH = "/etc/photoprism/config.yaml";
|
||||
PHOTOPRISM_CONFIG_PATH = "/etc/photoprism";
|
||||
PHOTOPRISM_INIT = "intel";
|
||||
PHOTOPRISM_ORIGINALS_LIMIT = 5000;
|
||||
PHOTOPRISM_HTTP_COMPRESSION = "gzip";
|
||||
|
|
Loading…
Reference in New Issue