Skip to content

Commit

Permalink
chore: nginx.confを直して、リバースプロキシの目的などを書く
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed May 6, 2024
1 parent 4d0985a commit f5da730
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ spec:

# Argo Eventsのリバースプロキシ。
- name: argo-events-reverse-proxy
external-hostname: argo-workflows-reverse-proxy.onp-k8s.admin.seichi.click
external-hostname: argo-workflows-webhook.onp-k8s.admin.seichi.click
internal-authority: "argo-events-reverse-proxy.argocd:80"

template:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 外部から Argo Workflows を発火するためには Cloudflared を使えば機能的には問題がないが、
# 任意のクライアントから GET を受け付けると面倒なので、POST だけに限定するためのリバースプロキシを挟む。
apiVersion: v1
kind: Deployment
metadata:
Expand All @@ -23,11 +25,10 @@ metadata:
namespace: argocd
data:
nginx.conf: |
events {
}
http {
server {
listen 80;
server_name argo-workflows-webhook.onp-k8s.admin.seichi.click;
location / {
if ($request_method !~ ^(POST)$ ) {
return 405;
Expand Down

0 comments on commit f5da730

Please sign in to comment.