Browse Source

update nginx config example

master
R4SAS 6 years ago
parent
commit
eb755160ba
  1. 33
      nginx-server.conf.example

33
nginx-server.conf.example

@ -25,35 +25,8 @@ server { @@ -25,35 +25,8 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
# TODO: do it better!
location /web/venus/ {
proxy_pass https://venus.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/;
location ~* ^/web/ {
rewrite ^/web/(.*)/(.*) /$2 break;
proxy_pass https://$1.web.telegram.org;
}
}

Loading…
Cancel
Save