From 57c40dcdcc112286eb9ec9dff1e4fe0e813b415b Mon Sep 17 00:00:00 2001 From: kqjy Date: Sat, 22 Nov 2025 15:51:43 +0800 Subject: [PATCH] Test server header --- docker-entrypoint.sh | 4 ++-- gunicorn_conf.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 gunicorn_conf.py diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 6fbaf2e..56389ad 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,7 +2,7 @@ set -e # Start API server in background -gunicorn "app:create_api_app()" --bind 0.0.0.0:5000 --workers 4 --access-logfile - & +gunicorn "app:create_api_app()" -c gunicorn_conf.py --bind 0.0.0.0:5000 --workers 4 --access-logfile - & # Start UI server in foreground -gunicorn "app:create_ui_app()" --bind 0.0.0.0:5100 --workers 4 --access-logfile - +gunicorn "app:create_ui_app()" -c gunicorn_conf.py --bind 0.0.0.0:5100 --workers 4 --access-logfile - diff --git a/gunicorn_conf.py b/gunicorn_conf.py new file mode 100644 index 0000000..3bec3cd --- /dev/null +++ b/gunicorn_conf.py @@ -0,0 +1,3 @@ +import gunicorn +gunicorn.SERVER_SOFTWARE = 'MyFSIO' +