Files
ProxmoxAAS-API/config/template.config.json
alu 24ed6907c7 initial updates to api v2.0.0:
-  switch access backend to access-manager-api
- change resource quota to pool based
-  simplify backend system
- various cleanup
2026-05-24 19:08:39 +00:00

141 lines
2.2 KiB
JSON

{
"application": {
"hostname": "paas.mydomain.example",
"domain": "mydomain.example",
"listenPort": 8081
},
"backends": {
"pve": {
"import": "pve.js",
"config": {
"url": "https://pve.mydomain.example/api2/json",
"fabric": "http://localhost:8082",
"token": {
"user": "proxmoxaas-api",
"realm": "pam",
"id": "token",
"uuid": "token-secret-value"
},
"root": {
"username": "root@pam",
"password": "rootpassword"
}
}
},
"access_manager": {
"import": "access_manager.js",
"config": {
"url": "http://localhost:8083"
}
}
},
"handlers": {
"instance": "pve",
"users": ["access_manager"]
},
"useriso": {
"node": "examplenode1",
"storage": "cephfs"
},
"backups": {
"storage": "cephfs"
},
"resources": {
"cpu": {
"type": "list",
"whitelist": true,
"display": false
},
"cores": {
"name": "vCPU",
"type": "numeric",
"multiplier": 1,
"base": 1024,
"compact": false,
"unit": "Cores",
"display": true
},
"memory": {
"name": "RAM",
"type": "numeric",
"multiplier": 1,
"base": 1024,
"compact": true,
"unit": "B",
"display": true
},
"swap": {
"name": "SWAP",
"type": "numeric",
"multiplier": 1,
"base": 1024,
"compact": true,
"unit": "B",
"display": true
},
"local": {
"name": "local",
"type": "storage",
"multiplier": 1,
"base": 1024,
"compact": true,
"unit": "B",
"disks": [
"rootfs",
"mp",
"sata",
"unused"
],
"display": true
},
"cephpl": {
"name": "cephpl",
"type": "storage",
"multiplier": 1,
"base": 1024,
"compact": true,
"unit": "B",
"disks": [
"rootfs",
"mp",
"sata",
"unused"
],
"display": true
},
"network": {
"name": "Network",
"type": "numeric",
"multiplier": 1000000,
"base": 1000,
"compact": true,
"unit": "B/s",
"display": true
},
"pci": {
"type": "list",
"whitelist": true,
"display": true
}
},
"clientsync": {
"resourcetypes": [
"lxc",
"qemu",
"node"
],
"schemes": {
"always": {
"enabled": true
},
"hash": {
"enabled": true
},
"interrupt": {
"min-rate": 1,
"max-rate": 60,
"enabled": true
}
}
}
}