2021-12-11 19:40:53 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
let port = 8002;
|
|
|
|
in {
|
|
|
|
services.miniflux = {
|
|
|
|
enable = true;
|
2022-05-04 03:02:47 +02:00
|
|
|
adminCredentialsFile = config.age.secrets.miniflux.path;
|
2021-12-12 16:04:58 +01:00
|
|
|
config = { LISTEN_ADDR = "localhost:${toString port}"; };
|
2021-12-11 19:40:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
virtualHosts."news.felschr.com" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2021-12-12 16:04:58 +01:00
|
|
|
locations."/".proxyPass = "http://localhost:${toString port}";
|
2021-12-11 19:40:53 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|