Unverified Commit 03ecd1a1 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

authelia: 4.39.12 -> 4.39.18 (#506399)

parents 92c5f17f a90d314a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
{ fetchFromGitHub }:
rec {
  pname = "authelia";
  version = "4.39.12";
  version = "4.39.18";

  src = fetchFromGitHub {
    owner = "authelia";
    repo = "authelia";
    rev = "v${version}";
    hash = "sha256-u7TIhOGXfvWdAXvpL5qa43jaoa7PNAVL2MtGEuWBDPc=";
    hash = "sha256-IROdncF3TC1X9000jw0RGtrcFrzqRpG7g2QuLGQ/Q4k=";
  };
  vendorHash = "sha256-7RoPv4OvOhiv+TmYOJuW95h/uh2LuTrpUSAZiTvbh7g=";
  pnpmDepsHash = "sha256-Ck2nqFwDv3OxN0ONA3A+h4Rli1te+EYqKivcqrAInKw=";
  vendorHash = "sha256-ZDsLRMip2B8PPZu8VxW+91FVvwC2rXzohhAZFifT26g=";
  pnpmDepsHash = "sha256-ki/jXNT9dIno1UIcDgBcsLdiKcaiw/dwnff3t9xv07o=";
}
+5 −1
Original line number Diff line number Diff line
@@ -40,8 +40,12 @@ stdenv.mkDerivation (finalAttrs: {
  };

  postPatch = ''
    NL=$'\n'
    LINE_BEFORE_HOST='allowedHosts: ["login.example.com", ...allowedHosts],'

    substituteInPlace ./vite.config.ts \
      --replace 'outDir: "../internal/server/public_html"' 'outDir: "dist"'
      --replace-fail 'outDir: "../internal/server/public_html"' 'outDir: "dist"' \
      --replace-fail "$LINE_BEFORE_HOST" "$LINE_BEFORE_HOST$NL"'            host: "127.0.0.1",'
  '';

  postBuild = ''