Start working on the split of the doc server to a different wsgi app
This commit is contained in:
parent
898e6927db
commit
9469e2a654
3 changed files with 37 additions and 2 deletions
|
@ -15,3 +15,33 @@
|
|||
SSLCertificateChainFile /etc/pki/tls/certs/pagure.io.intermediate.cert
|
||||
SSLCertificateKeyFile /etc/pki/tls/certs/pagure.io.key
|
||||
</VirtualHost>
|
||||
|
||||
|
||||
#TODO: move this to 443 when we have the ssl certs
|
||||
|
||||
<VirtualHost docs.pagure.io:80>
|
||||
WSGIDaemonProcess pagure user=git group=git maximum-requests=50000 display-name=pagure processes=8 threads=4 ina
|
||||
tivity-timeout=300
|
||||
|
||||
WSGISocketPrefix run/wsgi
|
||||
WSGIRestrictStdout On
|
||||
WSGIRestrictSignal Off
|
||||
WSGIPythonOptimize 1
|
||||
|
||||
WSGIScriptAlias / /usr/share/pagure/doc_pagure.wsgi
|
||||
|
||||
<Location />
|
||||
WSGIProcessGroup pagure
|
||||
<IfModule mod_authz_core.c>
|
||||
# Apache 2.4
|
||||
Require all granted
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
# Apache 2.2
|
||||
Order deny,allow
|
||||
Allow from all
|
||||
</IfModule>
|
||||
</Location>
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
|
|
|
@ -235,9 +235,12 @@
|
|||
- restart apache
|
||||
|
||||
- name: Install the wsgi file
|
||||
template: src=pagure.wsgi
|
||||
dest=/var/www/pagure.wsgi
|
||||
template: src={{ item }}
|
||||
dest=/var/www/{{ item }}
|
||||
owner=git group=git mode=0644
|
||||
with_items:
|
||||
- pagure.wsgi
|
||||
- docs_pagure.wsgi
|
||||
tags:
|
||||
- config
|
||||
- web
|
||||
|
|
|
@ -37,8 +37,10 @@ DOMAIN_EMAIL_NOTIFICATIONS = 'pagure.io'
|
|||
### The URL at which the project is available.
|
||||
{% if env == 'pagure-staging' %}
|
||||
APP_URL = 'https://stg.pagure.io/'
|
||||
DOC_APP_URL = 'http://docs.stg.pagure.org'
|
||||
{% else %}
|
||||
APP_URL = 'https://pagure.io/'
|
||||
DOC_APP_URL = 'https://docs.pagure.org'
|
||||
{% endif %}
|
||||
|
||||
### The URL to use to clone git repositories.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue