feat: add host_header config for Docker networking
All checks were successful
Build and Push Docker Image / build (push) Successful in 14s
All checks were successful
Build and Push Docker Image / build (push) Successful in 14s
When Grist validates the Host header (common with reverse proxy setups), internal Docker networking fails because requests arrive with Host: container-name instead of the external domain. The new host_header config option allows overriding the Host header sent to Grist while still connecting via internal Docker hostnames.
This commit is contained in:
@@ -14,6 +14,7 @@ class Document:
|
||||
url: str
|
||||
doc_id: str
|
||||
api_key: str
|
||||
host_header: str | None = None # Override Host header for Docker networking
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -78,6 +79,7 @@ def load_config(config_path: str) -> Config:
|
||||
url=doc_data["url"],
|
||||
doc_id=doc_data["doc_id"],
|
||||
api_key=doc_data["api_key"],
|
||||
host_header=doc_data.get("host_header"),
|
||||
)
|
||||
|
||||
# Parse tokens
|
||||
|
||||
Reference in New Issue
Block a user