webhook 설정 오류 수정
- deployer 배포 webhook 오류 설정 수정
This commit is contained in:
@@ -66,6 +66,27 @@ server {
|
||||
proxy_pass http://backend:8000;
|
||||
}
|
||||
|
||||
# webhook receiver (handle both /webhook and /webhook/)
|
||||
location = /webhook {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_pass http://deployer:9000/webhook;
|
||||
}
|
||||
|
||||
location /webhook/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_pass http://deployer:9000/webhook;
|
||||
}
|
||||
|
||||
# SPA 라우팅 (마지막에 두는 게 안전)
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
|
||||
Reference in New Issue
Block a user