diff --git a/files/doc_pagure.wsgi b/files/doc_pagure.wsgi new file mode 100644 index 0000000..b63b58a --- /dev/null +++ b/files/doc_pagure.wsgi @@ -0,0 +1,23 @@ +#-*- coding: utf-8 -*- + +# The three lines below are required to run on EL6 as EL6 has +# two possible version of python-sqlalchemy and python-jinja2 +# These lines make sure the application uses the correct version. +#import __main__ +#__main__.__requires__ = ['SQLAlchemy >= 0.8', 'jinja2 >= 2.4'] +#import pkg_resources + +#import os +## Set the environment variable pointing to the configuration file +#os.environ['PAGURE_CONFIG'] = '/etc/pagure/pagure.cfg' + + +## The following is only needed if you did not install pagure +## as a python module (for example if you run it from a git clone). +#import sys +#sys.path.insert(0, '/path/to/pagure/') + + +## The most import line to make the wsgi working +#from pagure.docs_server import APP as application +#application.debug = True diff --git a/files/pagure.conf b/files/pagure.conf index 9e17633..e713c75 100644 --- a/files/pagure.conf +++ b/files/pagure.conf @@ -22,3 +22,28 @@ # # + +# + #WSGIDaemonProcess pagure user=git group=git maximum-requests=50000 display-name=pagure processes=8 threads=4 inactivity-timeout=300 + + #WSGISocketPrefix run/wsgi + #WSGIRestrictStdout On + #WSGIRestrictSignal Off + #WSGIPythonOptimize 1 + + #WSGIScriptAlias / /usr/share/pagure/doc_pagure.wsgi + + # + # WSGIProcessGroup pagure + # + # # Apache 2.4 + # Require all granted + # + # + # # Apache 2.2 + # Order deny,allow + # Allow from all + # + # + +#