blob: b7cca114d9426750cae33cc26cb159a300ee045f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ config, pkgs, lib, inputs, ... }:
with lib;
let cfg = config.roles.web.stargazers; in {
options.roles.web.stargazers = {
enable = mkEnableOption "stargazers webserver";
};
config = mkIf cfg.enable {
networking.firewall.allowedTCPPorts = [ 80 ];
services.nginx = {
enable = true;
virtualHosts = {
"stargazers.xn--6frz82g".root = "/srv/web/stargazers";
};
};
};
}
|