1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

бот не вебхуках

This commit is contained in:
MoonTestUse1
2025-01-03 01:16:44 +06:00
parent d12c4d727f
commit 5e344210e8
4 changed files with 66 additions and 82 deletions

View File

@@ -25,6 +25,18 @@ server {
root /usr/share/nginx/html;
index index.html;
# Telegram webhook proxy
location /telegram/webhook/ {
proxy_pass http://support-backend:8000/telegram/webhook/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
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;
}
# API proxy
location /api/ {
proxy_pass http://support-backend:8000;