From be11c32139be3a3be9cac1e14c3a8d70f6374e3d Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Mon, 23 Oct 2023 15:31:39 -0700 Subject: [PATCH] feat: adds forward-proxy (#2442) --- Dockerfile | 1 + assets/pages/index.vue | 8 ++ assets/stores/config.ts | 6 + auth/proxy.go | 58 ++++++++++ main.go | 22 ++-- web/__snapshots__/web.snapshot | 34 +++--- web/csp.go | 2 +- web/healthcheck.go | 24 ++++ web/index.go | 142 ++++++++++++++++++++++++ web/routes.go | 194 +++++---------------------------- web/version.go | 11 ++ 11 files changed, 309 insertions(+), 193 deletions(-) create mode 100644 auth/proxy.go create mode 100644 web/healthcheck.go create mode 100644 web/index.go create mode 100644 web/version.go diff --git a/Dockerfile b/Dockerfile index 72e50ca6..75ee4c90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,6 +39,7 @@ COPY --from=node /build/dist ./dist COPY analytics ./analytics COPY healthcheck ./healthcheck COPY docker ./docker +COPY auth ./auth COPY web ./web COPY main.go ./ diff --git a/assets/pages/index.vue b/assets/pages/index.vue index d69597b4..e5588d42 100644 --- a/assets/pages/index.vue +++ b/assets/pages/index.vue @@ -1,5 +1,13 @@