Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
westsurname authored Jul 22, 2024
1 parent 1eee01d commit 3087fad
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plex_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@
from shared.shared import server, watchlist, plexHeaders, tokensFilename
from shared.overseerr import getUserForPlexToken
from shared.plex import getServerToken
from werkzeug.serving import run_simple
from werkzeug.middleware.dispatcher import DispatcherMiddleware
from werkzeug.middleware.proxy_fix import ProxyFix

host = server['host']

# instantiate the app
app = Flask(__name__)
app.config.from_object(__name__)
# app.config['SERVER_NAME'] = f"{host}"


@app.route('/', methods=['GET'])
Expand Down Expand Up @@ -59,7 +56,6 @@ def setupComplete(pin):

return jsonify('There was an error, please try again.')

# app.wsgi_app = DispatcherMiddleware(run_simple, {'/plexAuthentication': app.wsgi_app})
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_port=1, x_prefix=1)

if __name__ == '__main__':
Expand Down

0 comments on commit 3087fad

Please sign in to comment.