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/libreddit.nix

27 lines
556 B
Nix
Raw Normal View History

2024-05-29 17:15:20 +02:00
{ pkgs, config, ... }: {
# todo redlib instead of libreddit
2024-05-29 17:15:20 +02:00
services.libreddit = {
enable = true;
address = "127.0.0.1";
port = 3672;
package = pkgs.redlib;
2024-05-29 17:15:20 +02:00
};
services.nginx = {
virtualHosts = {
"libreddit.${config.networking.domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = " http://127.0.0.1:3672";
extraConfig = ''
access_log /var/log/nginx/$server_name-access.log json_analytics;
'';
2024-05-29 17:15:20 +02:00
};
};
};
};
}