Ë
    ÐÕ°ji!  ã                   ó6   — d dl Z dZdZdZd„ ZdZd„ ZdZd	Zd
„ Z	y)é    Naµ  
import os
import sys
import atexit
import time

from mod_wsgi.express.runtime import ApplicationHandler
from mod_wsgi.express.reloader import start_reloader

working_directory = r'%(working_directory)s'

entry_point = r'%(entry_point)s'
application_type = '%(application_type)s'
callable_object = '%(callable_object)s'
mount_point = '%(mount_point)s'
disable_reloading = %(disable_reloading)s
reload_on_changes = %(reload_on_changes)s
debug_mode = %(debug_mode)s
enable_debugger = %(enable_debugger)s
debugger_startup = %(debugger_startup)s
enable_coverage = %(enable_coverage)s
coverage_directory = '%(coverage_directory)s'
enable_profiler = %(enable_profiler)s
profiler_directory = '%(profiler_directory)s'
enable_recorder = %(enable_recorder)s
recorder_directory = '%(recorder_directory)s'
enable_gdb = %(enable_gdb)s

os.environ['MOD_WSGI_EXPRESS'] = 'true'
os.environ['MOD_WSGI_SERVER_NAME'] = '%(server_host)s'
os.environ['MOD_WSGI_SERVER_ALIASES'] = %(server_aliases)r or ''

if reload_on_changes:
    os.environ['MOD_WSGI_RELOADER_ENABLED'] = 'true'

if debug_mode:
    os.environ['MOD_WSGI_DEBUG_MODE'] = 'true'

    # We need to fiddle sys.path as we are not using daemon mode and so
    # the working directory will not be added to sys.path by virtue of
    # 'home' option to WSGIDaemonProcess directive. We could use the
    # WSGIPythonPath directive, but that will cause .pth files to also
    # be evaluated.

    sys.path.insert(0, working_directory)

if enable_debugger:
    os.environ['MOD_WSGI_DEBUGGER_ENABLED'] = 'true'

def output_coverage_report():
    coverage_info.stop()
    coverage_info.html_report(directory=coverage_directory)

if enable_coverage:
    os.environ['MOD_WSGI_COVERAGE_ENABLED'] = 'true'

    from coverage import coverage
    coverage_info = coverage()
    coverage_info.start()
    atexit.register(output_coverage_report)

def output_profiler_data():
    profiler_info.disable()
    output_file = '%%s-%%d.pstats' %% (int(time.time()*1000000), os.getpid())
    output_file = os.path.join(profiler_directory, output_file)
    profiler_info.dump_stats(output_file)

if enable_profiler:
    os.environ['MOD_WSGI_PROFILER_ENABLED'] = 'true'

    from cProfile import Profile
    profiler_info = Profile()
    profiler_info.enable()
    atexit.register(output_profiler_data)

if enable_recorder:
    os.environ['MOD_WSGI_RECORDER_ENABLED'] = 'true'

if enable_gdb:
    os.environ['MOD_WSGI_GDB_ENABLED'] = 'true'

handler = ApplicationHandler(entry_point,
        application_type=application_type, callable_object=callable_object,
        mount_point=mount_point,
        debug_mode=debug_mode, enable_debugger=enable_debugger,
        debugger_startup=debugger_startup, enable_recorder=enable_recorder,
        recorder_directory=recorder_directory)

if not disable_reloading:
    reload_required = handler.reload_required

handle_request = handler.handle_request

if not disable_reloading and reload_on_changes and not debug_mode:
    start_reloader()
zÊ
from mod_wsgi.express.runtime import ResourceHandler

resources = %(resources)s

handler = ResourceHandler(resources)

reload_required = handler.reload_required
handle_request = handler.handle_request
aì  
CONTENT = b'''
<html>
<head>
<title>My web site runs on Malt Whiskey</title>
</head>
<body style="margin-top: 100px;">
<table align="center"; style="width: 850px;" border="0" cellpadding="30">
<tbody>
<tr>
<td>
<img style="width: 275px; height: 445px;"
  src="/__wsgi__/images/snake-whiskey.jpg">
</td>
<td style="text-align: center;">
<span style="font-family: Arial,Helvetica,sans-serif;
  font-weight: bold; font-size: 70px;">
My web site<br>runs on<br>Malt Whiskey<br>
<br>
</span>
<span style="font-family: Arial,Helvetica,sans-serif;
  font-weight: bold;">
For further information on configuring mod_wsgi,<br>
see the <a href="%(documentation_url)s">documentation</a>.
</span>
</td>
</tr>
</tbody>
</table>
</body>
</html>
'''

def application(environ, start_response):
    status = '200 OK'
    output = CONTENT

    response_headers = [('Content-type', 'text/html'),
                        ('Content-Length', str(len(output)))]
    start_response(status, response_headers)

    return [output]
c           
      ó@  — t         j                  j                  | d   d«      }t        |d«      5 }t	        t
        | z  |¬«       d d d «       t         j                  j                  | d   d«      }t        |d«      5 }t	        t        t        t        | d   «      ¬«      z  |¬«       d d d «       t         j                  j                  | d   d«      }t        |d«      5 }t	        t        | z  |¬«       d d d «       y # 1 sw Y   Œ¸xY w# 1 sw Y   ŒbxY w# 1 sw Y   y xY w)	NÚserver_rootzhandler.wsgiÚw©Úfilezresource.wsgiÚhandler_scripts)Ú	resourceszdefault.wsgi)
ÚosÚpathÚjoinÚopenÚprintÚWSGI_HANDLER_SCRIPTÚWSGI_RESOURCE_SCRIPTÚdictÚreprÚWSGI_DEFAULT_SCRIPT©Úoptionsr   Úfps      úN/var/www/mission/venv/lib/python3.12/site-packages/mod_wsgi/express/scripts.pyÚgenerate_wsgi_handler_scriptr   ›   s   € Ü�7‰7�<‰<˜ Ñ.°Ó?€DÜ	ˆd�C‹ð 6˜BÜÔ! GÑ+°"Õ5÷6ô �7‰7�<‰<˜ Ñ.°Ó@€DÜ	ˆd�C‹ð 7˜BÜÔ"¤T´DØÐ)Ñ*ó5,ô &-ñ -Ø35õ	7÷7ô �7‰7�<‰<˜ Ñ.°Ó?€DÜ	ˆd�C‹ð 6˜BÜÔ! GÑ+°"Õ5÷6ð 6÷6ð 6ú÷7ð 7ú÷
6ð 6ús#   °C<Á<+DÃDÃ<DÄDÄDaÜ  
# Auto-generated by mod_wsgi-express --enable-telemetry. Runs the
# mod_wsgi-telemetry ingester and web UI inside a WSGIDaemonProcess
# threads=0 service daemon. The WSGI processes report to the UNIX
# socket below via the WSGITelemetryService directive in httpd.conf.

from mod_wsgi.telemetry.server import main

main([
    "--listen",    "unix:%(telemetry_socket)s",
    "--http-host", "127.0.0.1",
    "--http-port", "%(telemetry_ui_port)s",
    "--log-level", "INFO",
])
c                 ó´   — t         j                  j                  | d   d«      }t        |d«      5 }t	        t
        | z  |¬«       d d d «       y # 1 sw Y   y xY w)Nr   ztelemetry-service.pyr   r   )r
   r   r   r   r   ÚTELEMETRY_SERVICE_SCRIPTr   s      r   Ú!generate_telemetry_service_scriptr   ¹   sL   € Ü�7‰7�<‰<˜ Ñ.Ð0FÓG€DÜ	ˆd�C‹ð ;˜BÜÔ&¨Ñ0°rÕ:÷;÷ ;ñ ;ús   °AÁAa	  
#!%(shell_executable)s

# %(sys_argv)s

HTTPD="%(httpd_executable)s"
HTTPD_ARGS="%(httpd_arguments)s"

HTTPD_COMMAND="$HTTPD $HTTPD_ARGS"

MOD_WSGI_MODULES_DIRECTORY="%(modules_directory)s"
export MOD_WSGI_MODULES_DIRECTORY

SHLIBPATH="%(shlibpath)s"

if [ "x$SHLIBPATH" != "x" ]; then
    %(shlibpath_var)s="$SHLIBPATH:$%(shlibpath_var)s"
    export %(shlibpath_var)s
fi

MOD_WSGI_SERVER_ROOT="%(server_root)s"

export MOD_WSGI_SERVER_ROOT

MOD_WSGI_LISTENER_HOST="%(host)s"

export MOD_WSGI_LISTENER_HOST

MOD_WSGI_HTTP_PORT="%(port)s"
MOD_WSGI_HTTPS_PORT="%(https_port)s"

export MOD_WSGI_HTTP_PORT
export MOD_WSGI_HTTPS_PORT

WSGI_RUN_USER="${WSGI_RUN_USER:-%(user)s}"
WSGI_RUN_GROUP="${WSGI_RUN_GROUP:-%(group)s}"

MOD_WSGI_USER="${MOD_WSGI_USER:-${WSGI_RUN_USER}}"
MOD_WSGI_GROUP="${MOD_WSGI_GROUP:-${WSGI_RUN_GROUP}}"

export MOD_WSGI_USER
export MOD_WSGI_GROUP

if [ `id -u` = "0" -a ${MOD_WSGI_USER} = "root" ]; then
    cat << EOF

WARNING: When running as the 'root' user, it is required that the options
'--user' and '--group' be specified to mod_wsgi-express. These should
define a non 'root' user and group under which the Apache child worker
processes and mod_wsgi daemon processes should be run. Failure to specify
these options will result in Apache and/or the mod_wsgi daemon processes
failing to start. See the mod_wsgi-express documentation for further
information on this restriction.

EOF

fi

MOD_WSGI_WORKING_DIRECTORY="%(working_directory)s"

export MOD_WSGI_WORKING_DIRECTORY

LANG='%(lang)s'
LC_ALL='%(locale)s'

export LANG
export LC_ALL

ACMD="$1"
ARGV="$@"

if test -f %(server_root)s/envvars; then
    . %(server_root)s/envvars
fi

STATUSURL="http://%(host)s:%(port)s/server-status"

if [ "x$ARGV" = "x" ]; then
    ARGV="-h"
fi

GDB="%(gdb_executable)s"
ENABLE_GDB="%(enable_gdb)s"

PROCESS_NAME="%(process_name)s"

cd $MOD_WSGI_WORKING_DIRECTORY

case $ACMD in
start|stop|restart|graceful|graceful-stop)
    if [ "x$ENABLE_GDB" != "xTrue" ]; then
        exec -a "$PROCESS_NAME" $HTTPD_COMMAND -k $ARGV
    else
        echo "run $HTTPD_ARGS -k $ARGV" > %(server_root)s/gdb.cmds
        gdb -x %(server_root)s/gdb.cmds $HTTPD
    fi
    ;;
configtest)
    exec $HTTPD_COMMAND -t
    ;;
status)
    exec %(python_executable)s -m webbrowser -t $STATUSURL
    ;;
*)
    exec $HTTPD_COMMAND $ARGV
esac
z
. %(envvars_script)s
c                 ób  — t         j                  j                  | d   d«      }t        |d«      5 }t	        t
        j                  «       | z  |¬«       d d d «       t        j                  |d«       t         j                  j                  | d   d«      }| d   r=t        |d«      5 }| d   r"t	        t        j                  «       | z  |¬«       d d d «       y t         j                  j                  |«      st        |d«      5 }	 d d d «       y y # 1 sw Y   Œ»xY w# 1 sw Y   y xY w# 1 sw Y   y xY w)Nr   Ú	apachectlr   r   ií  ÚenvvarsÚenvvars_script)
r
   r   r   r   r   ÚWSGI_CONTROL_SCRIPTÚlstripÚchmodÚAPACHE_ENVVARS_FILEÚisfiler   s      r   Úgenerate_control_scriptsr%   .  s  € Ü�7‰7�<‰<˜ Ñ.°Ó<€DÜ	ˆd�C‹ð ?˜BÜÔ!×(Ñ(Ó*¨WÑ4¸2Õ>÷?ô ‡H�HˆT�5Ôä�7‰7�<‰<˜ Ñ.°	Ó:€DàÐÒ Ü�$˜‹_ð 	G ØÐ'Ò(ÜÔ)×0Ñ0Ó2°WÑ<À2ÕF÷	Gð 	Gô �W‰W�^‰^˜DÔ!Ü�$˜‹_ð 	 Ø÷	ð 	ð "÷?ð ?ú÷	Gð 	Gú÷
	ð 	ús#   °#DÂ%(DÄD%ÄDÄD"Ä%D.)
r
   r   r   r   r   r   r   r    r#   r%   © ó    r   ú<module>r(      sL   ðÛ 	ð_Ð ðB	Ð ð*Ð òX6ðÐ ò ;ð
jÐ ðXÐ ór'   