Configuring Nginx for Telegram Bot Webhooks with Self-Signed Certificates

I’m facing issues with Telegram webhook updates in my Ruby bot due to self-signed certificates. How do I set up nginx with a proper certificate chain?

upstream bot_servers {
    server 127.0.0.1:8080;
}

server {
    listen 9443 ssl;
    server_name example.com;
    
    ssl_certificate /path/to/new_cert.crt;
    ssl_certificate_key /path/to/new_key.key;
    
    location /hook {
        proxy_pass http://bot_servers;
    }
}

hey, check if you cert file contains the full chain. you might need to concat your chain pem to the main cert file; also, double-check that your nginx config poss the chain file path properly. might be a minor misconfig :confused: