36 lines
779 B
Nix
36 lines
779 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
port = 5010;
|
|
in
|
|
{
|
|
services = {
|
|
miniflux = {
|
|
enable = true;
|
|
adminCredentialsFile = config.age.secrets.miniflux-creds.path;
|
|
config = {
|
|
BASE_URL = "https://miniflux.fi33.buzz";
|
|
LISTEN_ADDR = "localhost:${toString port}";
|
|
};
|
|
};
|
|
|
|
borgmatic.settings.postgresql_databases = [
|
|
{
|
|
name = "miniflux";
|
|
hostname = "localhost";
|
|
username = "root";
|
|
password = "{credential systemd borgmatic-pg}";
|
|
}
|
|
];
|
|
|
|
nginx.virtualHosts."miniflux.fi33.buzz" = {
|
|
forceSSL = true;
|
|
useACMEHost = "fi33.buzz";
|
|
locations."/".proxyPass = "http://localhost:${toString port}";
|
|
};
|
|
};
|
|
|
|
age.secrets."miniflux-creds".file = ../../../secrets/miniflux-creds.age;
|
|
}
|