nginx: Don't override extra options in the host helper

pull/43/head
Tristan Daniël Maat 2021-05-17 00:02:03 +01:00
parent 5f8899d542
commit 343c7fcc36
Signed by: tlater
GPG Key ID: 49670FD774E43268
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
imports = [
@ -58,11 +58,11 @@
virtualHosts = let
host = port: extra:
{
lib.recursiveUpdate {
forceSSL = true;
enableACME = true;
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; };
} // extra;
} extra;
domain = config.services.nginx.domain;
in {
"${domain}" = host 3002 { serverAliases = [ "www.${domain}" ]; };