miniflux: use TCP on localhost instead of Unix socket
This commit is contained in:
parent
5a1f04ff16
commit
695f95dde2
1 changed files with 3 additions and 10 deletions
|
|
@ -1,9 +1,4 @@
|
||||||
{
|
{ config, inputs, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
mkNginxVHosts = inputs.self.lib.mkNginxVHosts;
|
mkNginxVHosts = inputs.self.lib.mkNginxVHosts;
|
||||||
|
|
@ -14,7 +9,7 @@ in
|
||||||
miniflux = {
|
miniflux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
LISTEN_ADDR = "/run/miniflux/miniflux.sock";
|
LISTEN_ADDR = "localhost:8080";
|
||||||
CREATE_ADMIN = 1;
|
CREATE_ADMIN = 1;
|
||||||
};
|
};
|
||||||
adminCredentialsFile = config.age.secrets.miniflux-admincreds.path;
|
adminCredentialsFile = config.age.secrets.miniflux-admincreds.path;
|
||||||
|
|
@ -23,13 +18,11 @@ in
|
||||||
|
|
||||||
nginx.virtualHosts = mkNginxVHosts {
|
nginx.virtualHosts = mkNginxVHosts {
|
||||||
domains."rss.baduhai.dev" = {
|
domains."rss.baduhai.dev" = {
|
||||||
locations."/".proxyPass = "http://unix:/run/miniflux/miniflux.sock:/";
|
locations."/".proxyPass = "http://${config.services.miniflux.config.LISTEN_ADDR}/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.nginx.extraGroups = [ "miniflux" ];
|
|
||||||
|
|
||||||
age.secrets.miniflux-admincreds = {
|
age.secrets.miniflux-admincreds = {
|
||||||
file = "${inputs.self}/secrets/miniflux-admincreds.age";
|
file = "${inputs.self}/secrets/miniflux-admincreds.age";
|
||||||
owner = "miniflux";
|
owner = "miniflux";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue