{
"128.3.3.1:1231":
{"name":"NAME SERVER 1","gamemode":"mods","url":"https://url.ru","lang":"ru","players":412,"peak":521,"maxplayers":3333},
"127.0.0.1:1234":
{"name":"NAME SERVER","gamemode":"mods","url":"https://url.ru","lang":"ru","players":598,"peak":609,"maxplayers":3000}
}
$json= "https://jsonurl";
$data = json_decode(file_get_contents($json),true);
$ip = "127.0.0.1:1234";
$item = $data[$ip];
"{\"order_id\": \"FACTPRECHR152632\", \"amount\": \"8300.00\"}"
'{"order_id": "FACTPRECHR152632", "amount": "8300.00"}'
if ("{\"order_id\": \"FACTPRECHR152632\", \"amount\": \"8300.00\"}" != '{\"order_id\": \"FACTPRECHR152632\", \"amount\": \"8300.00\"}') die("ERROR!!!");
serve_from_sub_path
в true
# this is required to proxy Grafana Live WebSocket connections.
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream grafana {
server localhost:3000;
}
server {
listen 80;
root /usr/share/nginx/www;
index index.html index.htm;
location /grafana/ {
proxy_set_header Host $http_host;
proxy_pass http://grafana;
}
# Proxy Grafana Live WebSocket connections.
location /grafana/api/live/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $http_host;
proxy_pass http://grafana;
}
}