nix-config/modules/services/rss-bridge.nix

25 lines
651 B
Nix
Raw Normal View History

2021-02-05 19:59:25 +01:00
# Get RSS feeds from websites that don't natively have one
{ config, lib, ... }:
let
cfg = config.my.services.rss-bridge;
in
{
options.my.services.rss-bridge = {
enable = lib.mkEnableOption "RSS-Bridge service";
};
config = lib.mkIf cfg.enable {
services.rss-bridge = {
enable = true;
whitelist = [ "*" ]; # Whitelist all
virtualHost = "rss-bridge.${config.networking.domain}";
2021-02-05 19:59:25 +01:00
};
# The service above configures the domain, no need for my wrapper
services.nginx.virtualHosts."rss-bridge.${config.networking.domain}" = {
2021-02-05 19:59:25 +01:00
forceSSL = true;
useACMEHost = config.networking.domain;
2021-02-05 19:59:25 +01:00
};
};
}