summary refs log blame commit diff stats
path: root/system/services/libreddit/default.nix
blob: e4ab89310ef9bce9f0206ebbe32359a011675a82 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                
                        
                          
                         
    








                                                                                              
 
{
  config,
  lib,
  ...
}: let
  domain = "libreddit.vhack.eu";
in {
  services.libreddit = {
    enable = true;
    address = "127.0.0.1";
    openFirewall = false;
  };

  services.nginx = {
    enable = true;
    virtualHosts.${domain} = {
      locations."/".proxyPass = "http://127.0.0.1:${toString config.services.libreddit.port}";

      enableACME = lib.mkDefault true;
      forceSSL = lib.mkDefault true;
    };
  };
}