feat(services/photoprism): expose via tammena.me
This commit is contained in:
parent
10c48510cb
commit
a00cf72868
|
@ -297,7 +297,8 @@ in {
|
||||||
# === Photoprism ===
|
# === Photoprism ===
|
||||||
services.photoprism = {
|
services.photoprism = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 2342;
|
port = config.state.services.foto.port;
|
||||||
|
address = "0.0.0.0";
|
||||||
storagePath = "/data/dirty/photoprism/storage";
|
storagePath = "/data/dirty/photoprism/storage";
|
||||||
originalsPath = "/data/dirty/photoprism/originals";
|
originalsPath = "/data/dirty/photoprism/originals";
|
||||||
importPath = "/data/dirty/photoprism/import";
|
importPath = "/data/dirty/photoprism/import";
|
||||||
|
@ -307,7 +308,7 @@ in {
|
||||||
PHOTOPRISM_SESSION_TIMEOUT = "31536000";
|
PHOTOPRISM_SESSION_TIMEOUT = "31536000";
|
||||||
PHOTOPRISM_UPLOAD_NSFW = "true";
|
PHOTOPRISM_UPLOAD_NSFW = "true";
|
||||||
PHOTOPRISM_DETECT_NSFW = "true";
|
PHOTOPRISM_DETECT_NSFW = "true";
|
||||||
PHOTOPRISM_SITE_URL = "https://foto.home";
|
PHOTOPRISM_SITE_URL = "https://foto.tammena.me";
|
||||||
PHOTOPRISM_SITE_TITLE = "PhotoPrism";
|
PHOTOPRISM_SITE_TITLE = "PhotoPrism";
|
||||||
PHOTOPRISM_SITE_CAPTION = "All the pictures!";
|
PHOTOPRISM_SITE_CAPTION = "All the pictures!";
|
||||||
PHOTOPRISM_SITE_DESCRIPTION = "";
|
PHOTOPRISM_SITE_DESCRIPTION = "";
|
||||||
|
@ -321,7 +322,7 @@ in {
|
||||||
systemd.services.photoprism.serviceConfig.SystemCallFilter = lib.mkForce [];
|
systemd.services.photoprism.serviceConfig.SystemCallFilter = lib.mkForce [];
|
||||||
services.nginx.virtualHosts."foto.home" = mkVirtHost "foto-home" {
|
services.nginx.virtualHosts."foto.home" = mkVirtHost "foto-home" {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:${builtins.toString config.services.photoprism.port}";
|
proxyPass = "http://${config.services.photoprism.address}:${builtins.toString config.services.photoprism.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
@ -52,7 +52,7 @@ in {
|
||||||
name = "${name}.tammena.me";
|
name = "${name}.tammena.me";
|
||||||
value = mkVirtHost {
|
value = mkVirtHost {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${config.host}:${builtins.toString config.port}";
|
proxyPass = "http://${config.host}.taila034c.ts.net:${builtins.toString config.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -72,16 +72,6 @@ in {
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sops.secrets =
|
|
||||||
lib.mapAttrs' (name: _: {
|
|
||||||
name = "certificate-key-${name}-tammena-me";
|
|
||||||
value = {
|
|
||||||
owner = "nginx";
|
|
||||||
mode = "0400";
|
|
||||||
};
|
|
||||||
})
|
|
||||||
(builtins.import ../state.nix).services;
|
|
||||||
|
|
||||||
services.qemuGuest.enable = true;
|
services.qemuGuest.enable = true;
|
||||||
|
|
||||||
services.bind = {
|
services.bind = {
|
||||||
|
|
Loading…
Reference in a new issue