A few refactoring commits #43

Manually merged
tlater merged 3 commits from tlater/refactoring into master 2021-05-17 00:25:32 +01:00
Showing only changes of commit 343c7fcc36 - Show all commits

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}" ]; };