Unverified Commit 9e087896 authored by Florian Klink's avatar Florian Klink Committed by GitHub
Browse files

nixos/caddy: Make virtualHosts' logFormat optional (#392390)

parents 2cdf7ede cf523f3f
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -30,9 +30,11 @@ let
        ${optionalString (
          hostOpts.useACMEHost != null
        ) "tls ${sslCertDir}/cert.pem ${sslCertDir}/key.pem"}
        ${optionalString (hostOpts.logFormat != null) ''
          log {
            ${hostOpts.logFormat}
          }
        ''}

        ${hostOpts.extraConfig}
      }
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ in
    };

    logFormat = mkOption {
      type = types.lines;
      type = types.nullOr types.lines;
      default = ''
        output file ${cfg.logDir}/access-${lib.replaceStrings [ "/" " " ] [ "_" "_" ] config.hostName}.log
      '';