Skip to content

Instantly share code, notes, and snippets.

View qq516249940's full-sized avatar


  • GuangZhou
View GitHub Profile
savely-krasovsky /
Last active February 5, 2023 14:04
Telegram webhooks with nginx reverse proxy

Make config file:

sudo nano /etc/nginx/sites-available/bot.conf

Then copy and paste bot.conf content and edit YOUR.DOMAIN strings. Now install Let's Encrypt on your server. For example in Debian you need to add jessie-backports and easily install it with apt-get:

sudo apt-get install -t jessie-backports letsencrypt

Then get cert for you domain:

mattd / gist:1006398
Created June 3, 2011 14:12
nginx try_files with a proxy_pass
server {
root /var/www/;
access_log /var/log/nginx/;
error_log /var/log/nginx/;
try_files /maintenance.html @proxy;
location @proxy {