Jenkins: Difference between revisions
imported>Qknight No edit summary |
imported>Qknight No edit summary |
||
Line 71: | Line 71: | ||
} | } | ||
} | } | ||
== reverse proxy == | |||
services.nginx = { | |||
enable = true; | |||
recommendedGzipSettings = true; | |||
recommendedOptimisation = true; | |||
virtualHosts = { | |||
jenkins = { | |||
serverName = "ci.example.com"; | |||
serverAliases = [ "ci-static.example.com" ]; | |||
forceSSL = true; | |||
enableACME = true; | |||
locations = { | |||
"/" = { | |||
proxyPass = "http://127.0.0.1:8080/"; | |||
}; | |||
}; | |||
}; | |||
}; | |||
You might want to enable the firewall using: | |||
networking.firewall.enable = true; | |||
== using email == | |||
Use <https://gitlab.com/simple-nixos-mailserver> for email support. Can be tested using a test button from the <localhost:8080> webpage. | |||
== building nix projects == | == building nix projects == |