about summary refs log blame commit diff
path: root/ops/modules/www/inbox.tvl.su.nix
blob: a9af18e3481bd1f5f252acc8889e09712597b73e (plain) (tree)























                                                                                         
{ config, ... }:

{
  imports = [
    ./base.nix
  ];

  config = {
    services.nginx.virtualHosts."inbox.tvl.su" = {
      enableACME = true;
      forceSSL = true;

      extraConfig = ''
        location = / {
          return 302 https://inbox.tvl.su/depot;
        }

        location / {
          proxy_pass http://localhost:${toString config.services.public-inbox.http.port};
        }
      '';
    };
  };
}