oopsidentify
This commit is contained in:
parent
f159c2cb9d
commit
ae431ac3dc
4 changed files with 30 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
nix = {
|
||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
gc.automatic = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,23 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.jenkins.enable = true;
|
||||
services.jenkins = {
|
||||
enable = true;
|
||||
port = 7401;
|
||||
};
|
||||
|
||||
security.acme.certs."${config.networking.domain}".extraDomainNames = [
|
||||
"jenkins.${config.networking.domain}"
|
||||
];
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
"jenkins.${config.networking.domain}" = {
|
||||
onlySSL = true;
|
||||
useACMEHost = config.networking.domain;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.jenkins.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
9
system/web-server/oopsidentify.nix
Normal file
9
system/web-server/oopsidentify.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.nginx.virtualHosts."oops.t9e.me" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
root = "/var/www/oopsidentify/dist";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue