nginx: add paths for ari, wss, aghome and difuse
This commit is contained in:
parent
7839b8cce7
commit
d0b8cf1a12
1 changed files with 44 additions and 2 deletions
|
@ -16,14 +16,56 @@ location ~ ^/ttyd(.*)$ {
|
|||
proxy_read_timeout 300s;
|
||||
proxy_connect_timeout 75s;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass http://\$server_addr:7681/\$1;
|
||||
proxy_pass http://127.0.0.1:7681/\$1;
|
||||
}
|
||||
|
||||
location ~ /netdata/(?<ndpath>.*) {
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass http://\$server_addr:19999/\$ndpath\$is_args\$args;
|
||||
proxy_pass http://127.0.0.1:19999/\$ndpath\$is_args\$args;
|
||||
}
|
||||
|
||||
location /asterisk-ari/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade \$http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass https://127.0.0.1:6071/ari/;
|
||||
proxy_set_header Authorization \$http_authorization;
|
||||
proxy_read_timeout 300s;
|
||||
proxy_connect_timeout 75s;
|
||||
}
|
||||
|
||||
location /asterisk-wss {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade \$http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_pass https://127.0.0.1:6071/ws;
|
||||
proxy_set_header Authorization \$http_authorization;
|
||||
proxy_read_timeout 300s;
|
||||
proxy_connect_timeout 75s;
|
||||
}
|
||||
|
||||
location /aghome/ {
|
||||
proxy_pass http://127.0.0.1:1887/;
|
||||
proxy_redirect / /aghome/;
|
||||
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;
|
||||
proxy_set_header X-Forwarded-Protocol \$scheme;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade \$http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
EOT
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue