from flask import Flask, Response, request, render_template, redirect, send_from_directory, url_for
from flask_httpauth import HTTPBasicAuth
from werkzeug.security import generate_password_hash, check_password_hash
+from werkzeug.middleware.proxy_fix import ProxyFix
from multiprocessing import Value
from os import listdir
import sqlite3
import os.path
app = Flask(__name__)
+app.wsgi_app = ProxyFix(
+ app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1
+)
auth = HTTPBasicAuth()
db_keys = ["title", "album", "artist", "year", "link", "info", "category", "playing", "intime", "outtime"]
allowed_audio = ["mp3", "wav", "ogg", "flac"]