19 lines
565 B
Plaintext
19 lines
565 B
Plaintext
# Telegram relay — TLS terminated by Nginx, app on 127.0.0.1:3100
|
|
# DNS: point this hostname at 65.108.18.151, then:
|
|
# certbot --nginx -d telegram-relay.ghabilee.ir
|
|
|
|
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name telegram-relay.ghabilee.ir;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:3100;
|
|
proxy_http_version 1.1;
|
|
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-Proto $scheme;
|
|
}
|
|
}
|