Newer
Older
smart-home-server / webclient / config.php
<?php

return [
	"version" => "0.1 dev",
	"server" => "http://192.168.1.101",
	// Какие пути разрешены (белый список) — подстрой под себя
	"allowed_prefixes" => [
		"/api/v1/",
	],
	"proxy" => [
		// Кто может обращаться (CORS)
		"allowed_origins" => [
			'http://localhost:5173',
			'http://127.0.0.1:5173',
			// 'https://your-frontend-domain.com',
		],
	],
];