summaryrefslogtreecommitdiff
path: root/systems/atlas/miniflux.nix
diff options
context:
space:
mode:
Diffstat (limited to 'systems/atlas/miniflux.nix')
-rw-r--r--systems/atlas/miniflux.nix27
1 files changed, 15 insertions, 12 deletions
diff --git a/systems/atlas/miniflux.nix b/systems/atlas/miniflux.nix
index 5fd22f2..14c9fc5 100644
--- a/systems/atlas/miniflux.nix
+++ b/systems/atlas/miniflux.nix
@@ -1,6 +1,5 @@
{
config,
- lib,
secretsDir,
...
}:
@@ -14,28 +13,32 @@
adminCredentialsFile = config.age.secrets.miniflux.path;
config = {
BASE_URL = "https://miniflux.${config.networking.domain}";
+ LISTEN_ADDR = "localhost:7000";
+ METRICS_COLLECTOR = 1;
};
};
nginx.virtualHosts = {
"miniflux.getchoo.com" = {
locations."/" = {
- proxyPass = "http://unix:${lib.head config.systemd.sockets.miniflux.listenStreams}";
+ proxyPass = "http://${config.services.miniflux.config.LISTEN_ADDR}";
};
};
};
};
- # Create the socket manually to ensure NGINX has permission for the socket's parent directory
- # ...since for some reason Miniflux will not give it the same `0777` permission as the socket itself
- systemd = {
- services.miniflux = {
- requires = [ "miniflux.socket" ];
- };
+ /*
+ # Create the socket manually to ensure NGINX has permission for the socket's parent directory
+ # ...since for some reason Miniflux will not give it the same `0777` permission as the socket itself
+ systemd = {
+ services.miniflux = {
+ requires = [ "miniflux.socket" ];
+ };
- sockets.miniflux = {
- wantedBy = [ "sockets.target" ];
- listenStreams = [ "/run/miniflux.sock" ];
+ sockets.miniflux = {
+ wantedBy = [ "sockets.target" ];
+ listenStreams = [ "/run/miniflux.sock" ];
+ };
};
- };
+ */
}