diff options
author | Dominique Martinet @ jormungand <asmadeus@codewreck.org> | 2020-10-02 17:00:20 +0200 |
---|---|---|
committer | Dominique Martinet @ jormungand <asmadeus@codewreck.org> | 2020-10-02 17:00:20 +0200 |
commit | 8145db3fc83bc231b920c0032a9dc93834ffd80f (patch) | |
tree | 8eeb443f0ac099a210e9a7d68adb9f978d0bdf36 | |
parent | 4b1ca3ff0bcc1fd42f1f63ec2c5d9421eedb58e0 (diff) |
miniflux: fix running as user & minor adjustments
-rw-r--r-- | machines/jormungand/nginx.nix | 2 | ||||
-rw-r--r-- | profiles/miniflux.nix | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/machines/jormungand/nginx.nix b/machines/jormungand/nginx.nix index 87cd154..2f64726 100644 --- a/machines/jormungand/nginx.nix +++ b/machines/jormungand/nginx.nix @@ -227,7 +227,7 @@ in { forceSSL = true; enableACME = true; locations."/" = { - proxyPass = "http://127.0.0.1:8081/"; + proxyPass = "http://[::1]:8081/"; }; }; diff --git a/profiles/miniflux.nix b/profiles/miniflux.nix index 49d567c..1fe8961 100644 --- a/profiles/miniflux.nix +++ b/profiles/miniflux.nix @@ -8,7 +8,11 @@ config = { POLLING_SCHEDULER = "entry_frequency"; CLEANUP_ARCHIVE_READ_DAYS = "30"; - LISTEN_ADDR = "localhost:8081"; + LISTEN_ADDR = "[::1]:8081"; + WORKER_POOL_SIZE = "2"; + POLLING_FREQUENCY = "180"; + BATCH_SIZE = "3"; + SCHEDULER_ENTRY_FREQUENCY_MAX_INTERVAL = "10080"; # 7*24*60 = 7d }; adminCredentialsFile = "/etc/nixos/secrets/miniflux"; }; @@ -23,6 +27,7 @@ "/etc/hosts" ]; DynamicUser = lib.mkForce false; + User = "miniflux"; # prestart inits the db, only needed the first time and conflicts with confinement ExecStartPre = lib.mkForce ""; }; |