mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
18 lines
398 B
Nix
18 lines
398 B
Nix
{ config, lib, pkgs, ... }:
|
|
with lib;{
|
|
config =
|
|
let
|
|
cfg = config.elss.server.nginx;
|
|
in
|
|
mkIf cfg.enable {
|
|
services.nginx.enable = true;
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
services.nginx.virtualHosts."localhost" = {
|
|
addSSL = false;
|
|
enableACME = false;
|
|
root = "/var/www/localhost";
|
|
default = true;
|
|
};
|
|
};
|
|
}
|