From: | Célestin Matte <celestin(dot)matte(at)cmatte(dot)me> |
---|---|
To: | pgsql-www(at)lists(dot)postgresql(dot)org |
Subject: | [PATCH] pgarchives: Add host option for pglister_sync |
Date: | 2025-01-23 14:48:12 |
Message-ID: | a870ed1b-3ef9-4041-9a6e-f35e02f41b66@cmatte.me |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-www |
This patch makes it possible to define a 'host' parameter in order to override the Host header, to be able to properly query localhost.
Context:
I want to set up HTTP auth for a deployment of pgarchives.
In order for pglister_sync to keep working, I need to either authenticate, or disable authentication for localhost.
When using external URL, the request gets routed to apache using the server's external IP, which makes the 'localhost' whitelist fail.
I prefer using the solution over authenticating, as it ensures queries get directly routed to localhost in the process.
--
Célestin Matte
Attachment | Content-Type | Size |
---|---|---|
0001-Add-host-option-for-pglister_sync.patch | text/x-patch | 2.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2025-01-23 15:05:00 | Re: Wikipage editor access |
Previous Message | Umar Hayat | 2025-01-23 07:58:16 | Wikipage editor access |