summaryrefslogtreecommitdiff
path: root/systems/atlas
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-02-08 15:44:53 -0500
committerSeth Flynn <[email protected]>2025-02-08 16:28:33 -0500
commitf073d76dbd6d0a1c77c32108140a6e4b0aa7cfe5 (patch)
tree4d41cbb36cf737a9b8826b8a8aaa44a9be69cf67 /systems/atlas
parentd6b4c2676863cfb369a8d3088b823bb22030aa63 (diff)
atlas: fix miniflux's unix socket
Diffstat (limited to 'systems/atlas')
-rw-r--r--systems/atlas/miniflux.nix21
1 files changed, 18 insertions, 3 deletions
diff --git a/systems/atlas/miniflux.nix b/systems/atlas/miniflux.nix
index 884cf7a..6d3f8ca 100644
--- a/systems/atlas/miniflux.nix
+++ b/systems/atlas/miniflux.nix
@@ -1,4 +1,9 @@
-{ config, secretsDir, ... }:
+{
+ config,
+ lib,
+ secretsDir,
+ ...
+}:
{
age.secrets.miniflux.file = secretsDir + "/miniflux.age";
@@ -9,7 +14,6 @@
adminCredentialsFile = config.age.secrets.miniflux.path;
config = {
BASE_URL = "https://miniflux.${config.networking.domain}";
- LISTEN_ADDR = "/run/miniflux";
};
};
@@ -17,10 +21,21 @@
virtualHosts = {
"miniflux.getchoo.com" = {
locations."/" = {
- proxyPass = "http://unix:${config.services.miniflux.config.LISTEN_ADDR}";
+ proxyPass = "http://unix:${lib.head config.systemd.sockets.miniflux.listenStreams}";
};
};
};
};
};
+
+ systemd = {
+ services.miniflux = {
+ requires = [ "miniflux.socket" ];
+ };
+
+ sockets.miniflux = {
+ wantedBy = [ "sockets.target" ];
+ listenStreams = [ "/run/miniflux.sock" ];
+ };
+ };
}