~metalune/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Added port and host to config

Details
Message ID
<PR3P191MB1129EEBBEDE24C0F6132855BDFB49@PR3P191MB1129.EURP191.PROD.OUTLOOK.COM>
DKIM signature
pass
Download raw message
Patch: +5 -1
---
 config.conf | 4 ++++
 main.py     | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/config.conf b/config.conf
index 237d8fd..508a302 100644
--- a/config.conf
+++ b/config.conf
@@ -14,3 +14,7 @@ ApiKey = [REDACTED]
[google]
# Google translate is enabled by default.
Enabled = True

[network]
port = 5000
host = 0.0.0.0
\ No newline at end of file
diff --git a/main.py b/main.py
index 03d3235..68652f0 100644
--- a/main.py
+++ b/main.py
@@ -288,4 +288,4 @@ async def about():


if __name__ == "__main__":
    app.run(port=5000, host="0.0.0.0")
    app.run(port=config.getint("network", "port", fallback=5000), host=str(config.get("network", "host", fallback="0.0.0.0"))) 
-- 
2.25.1
Details
Message ID
<CEX779WC6I9M.3AR1057VIGEK5@thinkpad>
In-Reply-To
<PR3P191MB1129EEBBEDE24C0F6132855BDFB49@PR3P191MB1129.EURP191.PROD.OUTLOOK.COM> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
Thank you
Reply to thread Export thread (mbox)