This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 0f1210f3ce08caab4f8ee7420c3709e5dd373353 Author: Daniel Gruno <[email protected]> AuthorDate: Sun Sep 6 19:00:26 2020 +0200 add backend ui config --- tools/setup.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tools/setup.py b/tools/setup.py index 543b220..0a9a362 100755 --- a/tools/setup.py +++ b/tools/setup.py @@ -425,6 +425,26 @@ if not os.path.exists("../site/js/config.js") and os.path.exists( ): shutil.copy("../site/js/config.js.sample", "../site/js/config.js") +print("Writing UI backend configuration file ponymail.yaml") +with open("../server/ponymail.yaml", "w") as f: + f.write(""" +server: + port: 8080 # Port to bind to + bind: 127.0.0.1 # IP to bind to - typically 127.0.0.1 for localhost or 0.0.0.0 for all IPs + + +database: + server: %s # The hostname of the ElasticSearch database + port: %u # ES Port + secure: false # Whether TLS is enabled on ES + url_prefix: ~ # URL prefix, if proxying to ES + db_prefix: %s # DB prefix, usually 'ponymail' + max_hits: 15000 # Maximum number of emails to process in a search + +tasks: + refresh_rate: 150 # Background indexer run interval, in seconds +""" % (hostname, port, dbname)) + print("All done, Pony Mail should...work now :)") print(
