pve2-api-php-client
pve2-api-php-client copied to clipboard
HTTP/2 not supported (in case of PVE Node behind Reverse Proxy)
If a Proxmox Host is behind a Reverse Proxy that responds with HTTP/2, the api will return "invalid HTTP Response".
This is because HTTP is parsed manually:
https://github.com/CpuID/pve2-api-php-client/blob/b9ef9cb4f040cf71bfa5281b1e31bfae7a984474/pve2_api.class.php#L245
Proxmox API uses HTTP/1.1 so it makes sense to keep this as-is. @danhunsaker what do you reckon?
This could be part of a bigger picture approach to there being a Reverse Proxy in-between code and node though.
@Anuril - do you want to submit a PR to support Reverse Proxies? Would be great if so. :-)