From 3092207d0becfca4921537164cffb969fbbed79b Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Mon, 6 May 2024 21:39:50 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20proxy.conf=20=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../argo-workflows-reverse-proxy.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/app-of-other-apps/argo-workflows-reverse-proxy.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/app-of-other-apps/argo-workflows-reverse-proxy.yaml index 5b77eb099..a1596048c 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/app-of-other-apps/argo-workflows-reverse-proxy.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/app-of-other-apps/argo-workflows-reverse-proxy.yaml @@ -34,15 +34,13 @@ metadata: namespace: argocd data: proxy.conf: | - http { - server { - listen 80; - server_name argo-workflows-webhook.onp-k8s.admin.seichi.click; - location / { - if ($request_method !~ ^(POST)$ ) { - return 405; - } - proxy_pass http://argo-workflows-server.argo:2746; + server { + listen 80; + server_name argo-workflows-webhook.onp-k8s.admin.seichi.click; + location / { + limit_except POST { + deny all; } + proxy_pass http://argo-workflows-server.argo:2746; } }