update nginx config example
This commit is contained in:
parent
1c3ad290cb
commit
eb755160ba
@ -25,35 +25,8 @@ server {
|
|||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
||||||
# TODO: do it better!
|
location ~* ^/web/ {
|
||||||
location /web/venus/ {
|
rewrite ^/web/(.*)/(.*) /$2 break;
|
||||||
proxy_pass https://venus.web.telegram.org/;
|
proxy_pass https://$1.web.telegram.org;
|
||||||
}
|
|
||||||
location /web/venus-1/ {
|
|
||||||
proxy_pass https://venus-1.web.telegram.org/;
|
|
||||||
}
|
|
||||||
location /web/pluto/ {
|
|
||||||
proxy_pass https://pluto.web.telegram.org/;
|
|
||||||
}
|
|
||||||
location /web/pluto-1/ {
|
|
||||||
proxy_pass https://pluto-1.web.telegram.org/;
|
|
||||||
}
|
|
||||||
location /web/vesta/ {
|
|
||||||
proxy_pass https://vesta.web.telegram.org/;
|
|
||||||
}
|
|
||||||
location /web/vesta-1/ {
|
|
||||||
proxy_pass https://vesta-1.web.telegram.org/;
|
|
||||||
}
|
|
||||||
location /web/aurora/ {
|
|
||||||
proxy_pass https://aurora.web.telegram.org/;
|
|
||||||
}
|
|
||||||
location /web/aurora-1/ {
|
|
||||||
proxy_pass https://aurora-1.web.telegram.org/;
|
|
||||||
}
|
|
||||||
location /web/flora/ {
|
|
||||||
proxy_pass https://flora.web.telegram.org/;
|
|
||||||
}
|
|
||||||
location /web/flora-1/ {
|
|
||||||
proxy_pass https://flora-1.web.telegram.org/;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user