Files
phpsite/sizes.php
alex d629689473 Redesign as VM webshop with NetBox virtualization integration
- Split single-page into 3 pages:
  - index.php: product catalog with VM size cards
  - create.php: order form (name, domain, description)
  - requests.php: request history with pagination
- Rewrite NetBox integration to create Virtual Machines
  (/virtualization/virtual-machines/) instead of DCIM devices
- Add netbox_integration/netbox_api.php: NetBoxClient with
  createVirtualMachine(), findCluster(), findTag(), getList()
- Generate new sleek product-card images (420x280) with
  aligned spec boxes (vcpus/ram/disk)
- Add webshop CSS: product cards, nav links, hero section,
  order layout, responsive grid
- Update redirects: send.php -> requests.php, cancel.php -> requests.php
- Update E2E test for new page structure
- Add .gitignore, deploy-local.sh, setup_database.sql to repo
2026-05-09 23:49:02 +02:00

16 lines
535 B
PHP

<?php
declare(strict_types=1);
/**
* Centralized VM size definitions and allowed domains.
* Used by index.php (form rendering) and send.php (validation + DB insert).
*/
return [
'sizes' => [
'small' => ['label' => 'Small', 'vcpus' => 2, 'ram_gb' => 4, 'disk_gb' => 50],
'medium' => ['label' => 'Medium', 'vcpus' => 4, 'ram_gb' => 8, 'disk_gb' => 80],
'big' => ['label' => 'Big', 'vcpus' => 8, 'ram_gb' => 16, 'disk_gb' => 120],
],
'domains' => ['domain1', 'domain2', 'domain3'],
];