deploy with gunicorn
This commit is contained in:
@@ -7,8 +7,6 @@ from flask import Flask, request, render_template
|
||||
from werkzeug.utils import secure_filename
|
||||
|
||||
UPLOAD_FOLDER = os.environ.get('NAVIDROME_MUSIC_FOLDER', '/opt/navidrome/music')
|
||||
BIND_ADDRESS = os.environ.get('BIND_ADDRESS', '0.0.0.0')
|
||||
BIND_PORT = int(os.environ.get('BIND_PORT', 5001))
|
||||
ALLOWED_EXTENSIONS = {'flac', 'mp3', 'wav'}
|
||||
|
||||
app = Flask(__name__)
|
||||
@@ -35,7 +33,3 @@ def upload_file():
|
||||
return render_template('success.html', success_message=f'{len(request.files)} file(s) uploaded successfully!'), 200
|
||||
|
||||
return render_template('index.html'), 200
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host=BIND_ADDRESS, port=BIND_PORT, debug=False)
|
||||
|
||||
Reference in New Issue
Block a user