summaryrefslogtreecommitdiff
path: root/systems/atlas/miniflux.nix
diff options
context:
space:
mode:
Diffstat (limited to 'systems/atlas/miniflux.nix')
-rw-r--r--systems/atlas/miniflux.nix25
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}";
+ };
+ };
+ };
};
};
}