refactor web server, hardware

This commit is contained in:
Till 2024-12-26 21:54:01 +01:00
parent f7d62caaa4
commit 5c8a4bcfdc
8 changed files with 29 additions and 22 deletions

View file

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.jenkins.enable = true;
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
security.acme = {
acceptTerms = true;
defaults.email = "till@ktiu.net";
};
}

View file

@ -1,32 +1,16 @@
{ config, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.jenkins.enable = true;
services.outline = {
enable = true;
storage.storageType = "local";
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
security.acme = {
acceptTerms = true;
defaults.email = "till@ktiu.net";
};
services.nginx.virtualHosts."outline.ktiu.net" = {
addSSL = true;
enableACME = true;
root = "/var/www/myhost.org";
# root = "/var/www/myhost.org";
locations."/" = {
proxyPass = "http://127.0.0.1:3000";
extraConfig =