# Path: app.py



import os
import sys
from flask import request, Response
from app import app
# -*- coding: utf-8 -*-
"""
    deployment.pass_remote_user
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Passing REMOTE_USER from Apache as a reverse proxy to web application servers
    http://flask.pocoo.org/snippets/69/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




"""
RequestHeader set X-Proxy-REMOTE-USER %{REMOTE_USER}
"""


class RemoteUserMiddleware(object):

# Path: app.py



# Path: deployment/pass_remote_user.py
import os
import sys
from flask import request, Response
from app import app

# -*- coding: utf-8 -*-
"""
    deployment.pass_remote_user
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Passing REMOTE_USER from Apache as a reverse proxy to web application servers
    http://flask.pocoo.org/snippets/69/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




"""
RequestHeader set X-Proxy-REMOTE-USER %{REMOTE_USER}
"""


class RemoteUserMiddleware(object):

    def __init__(self, app):