This repository has been archived on 2024-08-30. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/hosts/carbon/services/privacy/redlib.nix

35 lines
598 B
Nix

{ pkgs, config, ... }: {
services.libreddit = {
enable = true;
address = "127.0.0.1";
port = 3672;
package = pkgs.redlib;
};
services.nginx = {
virtualHosts = {
"libreddit.${config.networking.domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = " http://127.0.0.1:3672";
};
};
"redlib.${config.networking.domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = " http://127.0.0.1:3672";
};
};
};
};
}