2023-12-09 04:08:41 +01:00
|
|
|
{ config, ... }:
|
2021-12-11 19:40:53 +01:00
|
|
|
|
2023-12-09 04:08:41 +01:00
|
|
|
let
|
|
|
|
domain = "news.felschr.com";
|
|
|
|
port = 8002;
|
2021-12-11 19:40:53 +01:00
|
|
|
in {
|
2022-05-06 03:16:17 +02:00
|
|
|
age.secrets.miniflux.file = ../secrets/miniflux.age;
|
|
|
|
|
2021-12-11 19:40:53 +01:00
|
|
|
services.miniflux = {
|
|
|
|
enable = true;
|
2022-05-04 03:02:47 +02:00
|
|
|
adminCredentialsFile = config.age.secrets.miniflux.path;
|
2023-12-09 04:08:41 +01:00
|
|
|
config = {
|
|
|
|
LISTEN_ADDR = "localhost:${toString port}";
|
|
|
|
BASE_URL = "https://${domain}";
|
|
|
|
OAUTH2_PROVIDER = "oidc";
|
|
|
|
OAUTH2_CLIENT_ID = "miniflux";
|
|
|
|
OAUTH2_CLIENT_SECRET_FILE =
|
|
|
|
config.age.secrets.authelia-oidc-miniflux.path;
|
|
|
|
OAUTH2_REDIRECT_URL = "https://news.felschr.com/oauth2/oidc/callback";
|
|
|
|
OAUTH2_OIDC_DISCOVERY_ENDPOINT = "https://auth.felschr.com";
|
|
|
|
OAUTH2_USER_CREATION = "1";
|
|
|
|
};
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|