19 lines
444 B
Caddyfile
19 lines
444 B
Caddyfile
# Домен Mini App. DNS A-запись → IP этого сервера.
|
|
# Порты 80 и 443 должны быть свободны (для Let's Encrypt).
|
|
|
|
{$WEBAPP_DOMAIN:bot.example.com} {
|
|
encode gzip
|
|
reverse_proxy bot:8080
|
|
|
|
header {
|
|
X-Content-Type-Options nosniff
|
|
Referrer-Policy no-referrer-when-downgrade
|
|
# Telegram Login popup (OIDC)
|
|
Cross-Origin-Opener-Policy "same-origin-allow-popups"
|
|
}
|
|
|
|
log {
|
|
output stdout
|
|
}
|
|
}
|