chore: update
This commit is contained in:
@@ -126,7 +126,23 @@ server {
|
||||
}
|
||||
|
||||
# ---------------------------------------------------
|
||||
# Webhooks Telegram (LBTelegram — /webhook/bot1, /webhook/bot2…)
|
||||
# Webhook Telegram principal → backend Go
|
||||
# ---------------------------------------------------
|
||||
location = /webhook/telegram {
|
||||
limit_except POST { deny all; }
|
||||
|
||||
set $upstream_backend http://backend:8080;
|
||||
proxy_pass $upstream_backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
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;
|
||||
}
|
||||
|
||||
# ---------------------------------------------------
|
||||
# Webhooks LBTelegram (/webhook/bot1, /webhook/bot2…)
|
||||
# ---------------------------------------------------
|
||||
location /webhook/ {
|
||||
limit_except POST { deny all; }
|
||||
|
||||
Reference in New Issue
Block a user