mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 22:57:55 +00:00
22 lines
519 B
Nix
22 lines
519 B
Nix
|
# A private-use reverse proxy for certain system services.
|
||
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
hostCfg = config.hosts.ni;
|
||
|
cfg = hostCfg.services.reverse-proxy;
|
||
|
in
|
||
|
{
|
||
|
options.hosts.ni.services.reverse-proxy.enable =
|
||
|
lib.mkEnableOption "private-use reverse proxy setup";
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
services.nginx = {
|
||
|
enable = true;
|
||
|
recommendedGzipSettings = true;
|
||
|
recommendedOptimisation = true;
|
||
|
recommendedTlsSettings = true;
|
||
|
recommendedProxySettings = true;
|
||
|
};
|
||
|
};
|
||
|
}
|