public inbox for [email protected]
help / color / mirror / Atom feedFrom: Célestin Matte <[email protected]>
To: PostgreSQL WWW <[email protected]>
Subject: [PATCH] pgweb: Add SEARCH_DSN to example settings.py
Date: Fri, 22 Oct 2021 17:08:19 +0200
Message-ID: <[email protected]> (raw)
Hello,
Defining SEARCH_DSN is necessary to install the search functionality in pgweb, although this is not explained anywhere.
This patch adds SEARCH_DSN in the example settings.py so that users know that this variable must be defined.
Cheers,
--
Célestin Matte
Attachments:
[text/x-patch] 0001-Add-SEARCH_DSN-to-example-settings.py.patch (1.2K, 2-0001-Add-SEARCH_DSN-to-example-settings.py.patch)
download | inline diff:
From d738f255fc15f7f6ff26ac632b4060f9d2ff079d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9lestin=20Matte?= <[email protected]>
Date: Fri, 22 Oct 2021 17:05:39 +0200
Subject: [PATCH] Add SEARCH_DSN to example settings.py
---
pgweb/settings.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/pgweb/settings.py b/pgweb/settings.py
index 6c1cb24e..83b4b39d 100644
--- a/pgweb/settings.py
+++ b/pgweb/settings.py
@@ -164,6 +164,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
+SEARCH_DSN = "dbname=pgsearch" # database for search, see tools/search/sql/README
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
--
2.33.1
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: [PATCH] pgweb: Add SEARCH_DSN to example settings.py
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox