We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f757b4b + 079a843 commit 3e987e6Copy full SHA for 3e987e6
xsnippet/web_backend/__main__.py
@@ -12,4 +12,9 @@
12
13
# create an app instance and listen forever
14
app = create_app(conf)
15
-aiohttp.web.run_app(app, host=conf.LISTEN_HOST, port=conf.LISTEN_PORT)
+aiohttp.web.run_app(
16
+ app,
17
+ host=conf.LISTEN_HOST,
18
+ port=conf.LISTEN_PORT,
19
+ access_log_format=conf.ACCESS_LOG_FORMAT
20
+)
xsnippet/web_backend/conf.py
@@ -5,3 +5,5 @@
5
6
LISTEN_HOST = os.environ.get('XSNIPPET_WEB_PROXY_HOST', '0.0.0.0')
7
LISTEN_PORT = os.environ.get('XSNIPPET_WEB_PROXY_PORT', 5000)
8
+
9
+ACCESS_LOG_FORMAT = os.environ.get('ACCESS_LOG_FORMAT', '%t %a "%r" %s %b "%{User-Agent}i" %Tf')
0 commit comments