feat(miniflux): set up SSO
This commit is contained in:
parent
fe85437544
commit
9676f0ada2
4 changed files with 42 additions and 3 deletions
services
|
@ -1,13 +1,25 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, ... }:
|
||||
|
||||
let port = 8002;
|
||||
let
|
||||
domain = "news.felschr.com";
|
||||
port = 8002;
|
||||
in {
|
||||
age.secrets.miniflux.file = ../secrets/miniflux.age;
|
||||
|
||||
services.miniflux = {
|
||||
enable = true;
|
||||
adminCredentialsFile = config.age.secrets.miniflux.path;
|
||||
config = { LISTEN_ADDR = "localhost:${toString port}"; };
|
||||
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";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue