refactor web server, hardware
This commit is contained in:
parent
f7d62caaa4
commit
5c8a4bcfdc
8 changed files with 29 additions and 22 deletions
21
system/web-server/default.nix
Normal file
21
system/web-server/default.nix
Normal 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";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -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 =
|
||||
Loading…
Add table
Add a link
Reference in a new issue