Запускаем Bot Framework на nginx

server {
    server_name vnext-bot.appcode.pw;
    client_max_body_size 2M;
    location / {
        try_files $uri $uri/ @proxy;
    }

    location ~* {
        proxy_pass http://127.0.0.1:5000;  
        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-Host $server_name;
    }
...
}

Статьи:

https://groosha.gitbook.io/telegram-bot-lessons/extra/multiple_bots_2

Print Friendly, PDF & Email

Добавить комментарий