This commit is contained in:
Sridhar Ratnakumar 2024-11-19 16:38:56 -05:00
parent f751408443
commit 0090ff8ad9
No known key found for this signature in database
2 changed files with 1 additions and 49 deletions

View file

@ -1,49 +0,0 @@
{ flake, pkgs, lib, ... }:
let
inherit (flake) inputs;
inherit (inputs) self;
in
{
networking.firewall = {
allowedTCPPorts = [
80
443
];
};
# actualism-app (temp host)
services.nginx = {
enable = true;
virtualHosts."www.actualism.app" = {
enableACME = true;
# addSSL = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8080";
proxyWebsockets = true;
};
};
};
security.acme = {
acceptTerms = true;
defaults.email = "srid@srid.ca";
};
systemd.services.actualism-app = {
enable = true;
description = "actualism-app server";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart =
lib.getExe (pkgs.writeShellApplication {
name = "actualism-app-start";
text = ''
cd ${pkgs.actualism-app}/
${pkgs.actualism-app}/bin/actualism-app
'';
});
Restart = "always";
};
};
}

View file

@ -9,6 +9,7 @@
myKeys = [
me.sshKey
# vixen host key (see distributed-build.nix)
# TODO: This should be added to 'pureintent' only
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIImY2zbqe3HlPF62gSgUrJI7xY3n3NEBwRi/MkDrVjp5"
];
in