infra/pastila/paste.nix

17 lines
392 B
Nix
Raw Permalink Normal View History

2024-06-15 17:54:39 +00:00
{ config, lib, pkgs, paste-py, ... }:
{
# import the nixos module exported by the paste-py flake
imports = [ paste-py.nixosModules.default ];
custom.paste-py.enable = true;
services.nginx.enable = true;
services.nginx.virtualHosts."paste.isomorphis.me" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8888";
};
};
}