<?php
// Set the content type to application/json so the browser knows how to handle it.
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *'); // Allows any origin to fetch this data.

// --- Proxy Configuration ---
// In a real application, you might fetch these details from a database,
// an environment file, or another secure source.
// For this example, we will define them directly in the script.
$proxy_details = [
    "host"     => "ip",
    "port"     => "port",
    "username" => "user",
    "password" => "pass"
];

// Encode the array into a JSON string and output it.
echo json_encode($proxy_details);

?>
