aiogram / telegram-bot-api

Docker image of Telegram Bot API Server
https://hub.docker.com/r/aiogram/telegram-bot-api
153 stars 50 forks source link

Hide token from nginx access logs #4

Closed Olegt0rr closed 2 years ago

Olegt0rr commented 2 years ago

Before fix

172.23.0.4 - - [04/Apr/2022:20:56:55 +0000] "POST /bot1234567890:ABGFmfQrmd0lcXeGFS1nbfk5FOGVoNdr4zU/deleteWebhook HTTP/1.1" 200 68 "-" "Python/3.9 aiohttp/3.8.1"
172.23.0.4 - - [04/Apr/2022:20:56:55 +0000] "POST /bot1234567890:ABGFmfQrmd0lcXeGFS1nbfk5FOGVoNdr4zU/setWebhook HTTP/1.1" 200 57 "-" "Python/3.9 aiohttp/3.8.1"

After fix

172.23.0.4 - - [04/Apr/2022:20:56:55 +0000] "POST /bot1234567890:<hidden-token>/deleteWebhook HTTP/1.1" 200 68 "-" "Python/3.9 aiohttp/3.8.1"
172.23.0.4 - - [04/Apr/2022:20:56:55 +0000] "POST /bot1234567890:<hidden-token>/setWebhook HTTP/1.1" 200 57 "-" "Python/3.9 aiohttp/3.8.1"