mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-07 16:47:23 +08:00
Unused
This commit is contained in:
parent
f751408443
commit
0090ff8ad9
2 changed files with 1 additions and 49 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue