summaryrefslogtreecommitdiff
path: root/src/jwebmail
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-12-07 00:00:11 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-12-07 00:00:11 +0100
commitbada35304072f4a62dfe688db0b1e4b6d7be62a5 (patch)
tree50d0ac1d97c9588ef868944b30954062ceb47307 /src/jwebmail
parentf3dee66079ef795a23e4f339044491c76814db12 (diff)
move to build tool hatch
don't require proxy field in config
Diffstat (limited to 'src/jwebmail')
-rw-r--r--src/jwebmail/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py
index aa4d6a7..b7fd03f 100644
--- a/src/jwebmail/__init__.py
+++ b/src/jwebmail/__init__.py
@@ -32,7 +32,7 @@ else:
from toml import load as toml_load
toml_read_file = dict(load=toml_load, text=True)
-__version__ = "2.0.0"
+__version__ = "2.0.0.dev2"
def validate_config(app):
@@ -62,7 +62,7 @@ def create_app():
else:
app.config.from_file(environ["JWEBMAIL_CONFIG"], **toml_read_file)
- if app.config["JWEBMAIL"]["PROXY"]:
+ if app.config["JWEBMAIL"].get("PROXY"):
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1)
validate_config(app)