i2music/wsgi_fileserve.py

16 lines
551 B
Python

import os
import gunicorn
from fileserve import app, hostname, gunicorn_stream_port
if __name__ == '__main__':
app.run(host=hostname, port=gunicorn_stream_port)
workers = int(os.environ.get('GUNICORN_PROCESSES', '1'))
threads = int(os.environ.get('GUNICORN_THREADS', '1'))
bind = os.environ.get('GUNICORN_BIND', f'{hostname}:{str(gunicorn_stream_port)}')
forwarded_allow_ips = '*'
secure_scheme_headers = { 'X-Forwarded-Proto': 'https' }
gunicorn.SERVER = ''
gunicorn.SERVER_SOFTWARE = ''
gunicorn.Server_Timing = ''
gunicorn.CONNECTION = ''