34 lines
632 B
Nix
34 lines
632 B
Nix
name:
|
|
|
|
let port = 3000;
|
|
in (import ../outer-defaults.nix name) // {
|
|
|
|
bindMounts."/srv/c3d2" = {
|
|
hostPath = "/srv/ceph/c3d2";
|
|
isReadOnly = false;
|
|
};
|
|
|
|
ephemeral = true;
|
|
|
|
forwardPorts = [{
|
|
containerPort = port;
|
|
hostPort = port;
|
|
protocol = "tcp";
|
|
}];
|
|
|
|
config = { config, pkgs, lib, ... }: {
|
|
imports = [ ../inner-defaults.nix ];
|
|
networking.firewall.enable = false;
|
|
services.nginx = {
|
|
enable = true;
|
|
virtualHosts = {
|
|
"hydra7.y.c3d2.de" = {
|
|
default = true;
|
|
locations."/".proxyPass = "http://127.0.0.1:${toString port}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|