From cea6896788a42c0ea40f99deb4b5987d6741e360 Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 16 Aug 2024 23:33:53 +0200 Subject: big dump, forgot to commit... --- nix/hosts/corrino/www/photo/photoprism.nix | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 nix/hosts/corrino/www/photo/photoprism.nix (limited to 'nix/hosts/corrino/www/photo/photoprism.nix') diff --git a/nix/hosts/corrino/www/photo/photoprism.nix b/nix/hosts/corrino/www/photo/photoprism.nix new file mode 100644 index 0000000..c1cbbf8 --- /dev/null +++ b/nix/hosts/corrino/www/photo/photoprism.nix @@ -0,0 +1,33 @@ +{ config, ... }: + +{ + services.nginx.virtualHosts."photo.emile.space" = { + forceSSL = true; + enableACME = true; + + locations = { + "/" = { + proxyPass = "http://127.0.0.1:${toString config.services.photoprism.port}"; + proxyWebsockets = true; + }; + }; + }; + + services.photoprism = { + enable = true; + + address = "127.0.0.1"; + port = config.emile.ports.photo.photoprism; + + passwordFile = config.age.secrets.photoprism_password.path; + + # originalsPath = "/data/photos"; + originalsPath = "/mnt/storagebox-bx11/photos"; + + settings = { + PHOTOPRISM_ADMIN_USER = "root"; + PHOTOPRISM_DEFAULT_LOCALE = "en"; + PHOTOPRISM_SITE_URL = "https://photo.emile.space"; + }; + }; +} -- cgit 1.4.1