/usr/share/bcfg2/reports.wsgi is in bcfg2-web 1.3.3-1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | import os
import Bcfg2.settings
os.environ['DJANGO_SETTINGS_MODULE'] = 'Bcfg2.settings'
import django.core.handlers.wsgi
def application(environ, start_response):
if 'BCFG2_CONFIG_FILE' in environ:
Bcfg2.settings.read_config(cfile=environ['BCFG2_CONFIG_FILE'])
return django.core.handlers.wsgi.WSGIHandler()(environ, start_response)
|