feat (hosts/mystra): taskd
This commit is contained in:
parent
2bbad71636
commit
a7c598fe42
3 changed files with 32 additions and 15 deletions
|
|
@ -4,23 +4,15 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./disk-config.nix
|
./disk-config.nix
|
||||||
../../nixos/server.nix
|
../../nixos/server.nix
|
||||||
|
./nginx.nix
|
||||||
|
./taskd.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.nginx = {
|
networking.firewall.allowedTCPPorts = [
|
||||||
enable = true;
|
80 # HTTP (nginx)
|
||||||
virtualHosts."henri-saudubray.fr" = {
|
443 # HTTPS (nginx)
|
||||||
enableACME = true;
|
53589 # Taskserver
|
||||||
# forceSSL = true;
|
];
|
||||||
root = "/var/www/html";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
||||||
|
|
||||||
security.acme = {
|
|
||||||
acceptTerms = true;
|
|
||||||
defaults.email = "henri.saudubray@proton.me";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostName = "mystra";
|
networking.hostName = "mystra";
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
|
|
|
||||||
16
hosts/mystra/nginx.nix
Normal file
16
hosts/mystra/nginx.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts."henri-saudubray.fr" = {
|
||||||
|
enableACME = true;
|
||||||
|
# forceSSL = true;
|
||||||
|
root = "/var/www/html";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
security.acme = {
|
||||||
|
acceptTerms = true;
|
||||||
|
defaults.email = "henri.saudubray@proton.me";
|
||||||
|
};
|
||||||
|
}
|
||||||
9
hosts/mystra/taskd.nix
Normal file
9
hosts/mystra/taskd.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.taskserver = {
|
||||||
|
enable = true;
|
||||||
|
fqdn = "henri-saudubray.fr";
|
||||||
|
listenHost = "::";
|
||||||
|
organisations.personal.users = [ "hms" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue