CluPilotCloud/config/admin_access.php

25 lines
756 B
PHP

<?php
return [
/*
| Hostnames the operator console (/admin) may be served on.
|
| The Proxmox hosts and the admin console must never be publicly reachable.
| The primary control belongs in the reverse proxy (only expose the public
| hostnames); this is defence in depth INSIDE the app, so a proxy
| misconfiguration cannot silently expose the console on a public domain.
|
| Comma-separated in ADMIN_HOSTS. EMPTY = no host restriction (dev default),
| so nobody gets locked out by simply upgrading.
|
| Example (production):
| ADMIN_HOSTS=admin.clupilot.com
*/
'hosts' => array_values(array_filter(array_map(
'trim',
explode(',', (string) env('ADMIN_HOSTS', ''))
))),
];