[GH-ISSUE #107] Make default port configurable #57

Closed
opened 2026-02-27 15:46:12 +03:00 by kerem · 1 comment
Owner

Originally created by @fernwerker on GitHub (Aug 3, 2022).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/107

Originally assigned to: @jhollowe on GitHub.

Hi,
I think this value should not be hard-coded but made configurable (e.g. by host:port) value to make use of API behind reverse proxy that offers tcp/443 UI and not tcp/8006

github.com/proxmoxer/proxmoxer@7a49519883/proxmoxer/core.py (L42)

Relates to: https://github.com/prometheus-pve/prometheus-pve-exporter/issues/117

Originally created by @fernwerker on GitHub (Aug 3, 2022). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/107 Originally assigned to: @jhollowe on GitHub. Hi, I think this value should not be hard-coded but made configurable (e.g. by host:port) value to make use of API behind reverse proxy that offers tcp/443 UI and not tcp/8006 https://github.com/proxmoxer/proxmoxer/blob/7a49519883e8504ba00102285b3efa0861ad53b7/proxmoxer/core.py#L42 Relates to: https://github.com/prometheus-pve/prometheus-pve-exporter/issues/117
kerem 2026-02-27 15:46:12 +03:00
Author
Owner

@jhollowe commented on GitHub (Aug 4, 2022):

by definition, a default port must be hard-coded so there can be a default.

But you can pass a port into proxmoxer using either the port argument or just adding :<port> to the hostname.
The port is extracted from the host and only if it is missing is the default port for that service used.

github.com/proxmoxer/proxmoxer@23614c8693/proxmoxer/backends/https.py (L277)

<!-- gh-comment-id:1204616730 --> @jhollowe commented on GitHub (Aug 4, 2022): by definition, a default port must be hard-coded so there can be a default. But you can pass a port into proxmoxer using either the `port` argument or just adding `:<port>` to the hostname. The port is extracted from the host and only if it is missing is the default port for that service used. https://github.com/proxmoxer/proxmoxer/blob/23614c8693a845793484bdeb41349baad7c7d796/proxmoxer/backends/https.py#L277
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#57
No description provided.