Add ARCHIVES_FRONT_ADDRESS to allow configuration of archives URL

Domain of messages in pgweb's search is currently hardcoded as postgresql.org
in templates/search/listsearch.html. This patch allows to use another domain
for links to messages in archives in the search function.
Since pgarchives' domain can differ from pgweb's one, a new variable is defined
for that purpose instead of using SITE_ROOT.
This commit is contained in:
Célestin Matte
2022-01-15 18:20:04 +01:00
committed by Magnus Hagander
parent 634d2f35cf
commit 5a1a0e23ee
3 changed files with 5 additions and 2 deletions

View File

@ -167,6 +167,7 @@ VARNISH_PURGERS = () # Extra servers that
DO_ESI = False # Generate ESI tags
ARCHIVES_SEARCH_SERVER = "archives.postgresql.org" # Where to post REST request for archives search
ARCHIVES_SEARCH_PLAINTEXT = False # Contact ARCHIVES_SEARCH_SERVER with http instead of https
ARCHIVES_FRONT_ADDRESS = "https://www.postgresql.org" # Domain to read archives messages
FRONTEND_SMTP_RELAY = "magus.postgresql.org" # Where to relay user generated email
OAUTH = {} # OAuth providers and keys
PGDG_ORG_ID = -1 # id of the PGDG organisation entry