Skip to content

Add PLACE_HOST_HEADER env var to control PlaceOS client host_header#357

Merged
stakach merged 1 commit intoPlaceOS:masterfrom
viv-4:feat/place-host-header
Dec 16, 2025
Merged

Add PLACE_HOST_HEADER env var to control PlaceOS client host_header#357
stakach merged 1 commit intoPlaceOS:masterfrom
viv-4:feat/place-host-header

Conversation

@viv-4
Copy link
Contributor

@viv-4 viv-4 commented Dec 5, 2025

Adds a new environment variable, PLACE_HOST_HEADER, and uses it when constructing PlaceOS::Client so staff-api can override the Host header sent to rest-api, etc.

  • Some deployments require using a PLACE_URI which is not a configured PlaceOS domain (authority)
  • This allows an internal PLACE_URI while defining which PlaceOS domain to use

Previously the header was always taken from the incoming request, which made it difficult to force a different Host in containerised or proxy setups.

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Hey, your PR is titled Add PLACE_HOST_HEADER env var to control PlaceOS client host_header.
This is not a valid conventional commit.
Since we use well-formed PR titles for our changelogs, not fixing this can introduce problems :'(

Copy link
Member

@stakach stakach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stakach stakach merged commit 387f284 into PlaceOS:master Dec 16, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants