diff options
| author | Seth Flynn <[email protected]> | 2025-02-08 15:00:56 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-08 15:17:18 -0500 |
| commit | a30dd450fe10ed6c8bad652ee16a50005bd3c63a (patch) | |
| tree | 702630b404297be750326985e2eff87a89fb912d /systems/atlas/miniflux.nix | |
| parent | 49aa07fa63fa489ad4f3b0ff9fc34f36bb630fd6 (diff) | |
atlas: configure nginx with upstream services
Diffstat (limited to 'systems/atlas/miniflux.nix')
| -rw-r--r-- | systems/atlas/miniflux.nix | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/systems/atlas/miniflux.nix b/systems/atlas/miniflux.nix index ec5bd3a..a83c4cd 100644 --- a/systems/atlas/miniflux.nix +++ b/systems/atlas/miniflux.nix @@ -1,13 +1,26 @@ { config, secretsDir, ... }: + { age.secrets.miniflux.file = secretsDir + "/miniflux.age"; - services.miniflux = { - enable = true; - adminCredentialsFile = config.age.secrets.miniflux.path; - config = { - BASE_URL = "https://miniflux.${config.networking.domain}"; - LISTEN_ADDR = "localhost:7000"; + services = { + miniflux = { + enable = true; + adminCredentialsFile = config.age.secrets.miniflux.path; + config = { + BASE_URL = "https://miniflux.${config.networking.domain}"; + LISTEN_ADDR = "localhost:7000"; + }; + }; + + nginx = { + virtualHosts = { + "miniflux.getchoo.com" = { + locations."/" = { + proxyPass = "http://${config.services.miniflux.config.LISTEN_ADDR}"; + }; + }; + }; }; }; } |
