diff --git a/app/__init__.py b/app/__init__.py
index 7c49f93..aad285e 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -5,7 +5,7 @@ from .api import api_bp
def create_app():
app = Flask(__name__)
app.config.from_object(Config)
-
+
app.register_blueprint(api_bp, url_prefix='/api')
@app.route('/favicon.ico')
@@ -19,6 +19,11 @@ def create_app():
response.headers['Cache-Control'] = f'public, max-age={max_age}'
return response
+ @app.after_request
+ def remove_content_disposition(response):
+ response.headers.pop('Content-Disposition', None)
+ return response
+
@app.route('/')
def index():
template_vars = {
@@ -30,5 +35,5 @@ def create_app():
@app.route('/api/health')
def health():
return {'status': 'OK'}
-
+
return app
diff --git a/entrypoint.sh b/entrypoint.sh
index 3f2721f..5ea8281 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -1,2 +1,2 @@
#!/bin/sh
-exec gunicorn -w 4 -b 0.0.0.0:5000 'app:create_app()'
+exec gunicorn -c gunicorn.conf.py --no-control-socket -w 4 -b 0.0.0.0:5000 'app:create_app()'
diff --git a/gunicorn.conf.py b/gunicorn.conf.py
new file mode 100644
index 0000000..ecccba7
--- /dev/null
+++ b/gunicorn.conf.py
@@ -0,0 +1,10 @@
+from gunicorn.http import wsgi
+from functools import wraps
+
+def wrap_default_headers(func):
+ @wraps(func)
+ def default_headers(*args, **kwargs):
+ return [h for h in func(*args, **kwargs) if not h.startswith('Server:')]
+ return default_headers
+
+wsgi.Response.default_headers = wrap_default_headers(wsgi.Response.default_headers)
diff --git a/requirements.txt b/requirements.txt
index 9485846..6ef7d2a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -5,3 +5,4 @@ python-dotenv==1.0.1
werkzeug==3.0.4
gunicorn
cssutils
+flask-static-digest
\ No newline at end of file
diff --git a/static/css/app.css b/static/css/app.css
index 664c771..26b3a40 100644
--- a/static/css/app.css
+++ b/static/css/app.css
@@ -22,7 +22,7 @@
.drop-zone {
cursor: pointer;
transition: all 0.2s;
- min-height: 280px;
+ min-height: 200px;
}
.drop-zone:hover {
diff --git a/static/js/app.js b/static/js/app.js
index d03cdc8..ad290f5 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -99,17 +99,16 @@ document.addEventListener("DOMContentLoaded", () => {
${escapeHtml(data.original ?? "")} → ${sizeKB}KB
-
or click to browse
+or click
-