Fix the datagrepper apache config and simplify the fedmsg config
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
74f79ee76e
commit
7a40481b1f
2 changed files with 2 additions and 10 deletions
|
@ -23,11 +23,11 @@ AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text
|
|||
# Static resources for the datagrepper app.
|
||||
Alias /datagrepper/static/ /usr/lib/python2.7/site-packages/datagrepper/static/
|
||||
|
||||
WSGIDaemonProcess datagrepper user=fedmsg group=fedmsg maximum-requests=50000 display-name=datagrepper processes=20 threads=5 inactivity-timeout=900
|
||||
WSGISocketPrefix run/wsgi
|
||||
WSGIRestrictStdout Off
|
||||
WSGIRestrictSignal Off
|
||||
WSGIPythonOptimize 1
|
||||
WSGIDaemonProcess datagrepper user=fedmsg group=fedmsg maximum-requests=50000 display-name=datagrepper processes=20 threads=5 inactivity-timeout=900
|
||||
|
||||
WSGIScriptAlias /datagrepper /usr/share/datagrepper/apache/datagrepper.wsgi
|
||||
|
||||
|
|
|
@ -8,15 +8,7 @@ config = {
|
|||
# expect the amount of data it generates to grow pretty steadily over time
|
||||
# and we don't want *read* operations on that database to slow down all our
|
||||
# other apps.
|
||||
{% if env == "staging" %}
|
||||
'datanommer.sqlalchemy.url': 'postgresql://{{ datanommerDBUser }}:{{ datanommerDBPassword }}@db-datanommer01.stg.iad2.fedoraproject.org/datanommer',
|
||||
'fedmenu_url': 'https://apps.stg.fedoraproject.org/fedmenu',
|
||||
'fedmenu_data_url': 'https://apps.stg.fedoraproject.org/js/data.js',
|
||||
{% else %}
|
||||
'datanommer.sqlalchemy.url': 'postgresql://{{ datanommerDBUser }}:{{ datanommerDBPassword }}@db-datanommer01.iad2.fedoraproject.org/datanommer',
|
||||
'fedmenu_url': 'https://apps.fedoraproject.org/fedmenu',
|
||||
'fedmenu_data_url': 'https://apps.fedoraproject.org/js/data.js',
|
||||
{% endif %}
|
||||
'datanommer.sqlalchemy.url': 'postgresql://{{ datanommer_user }}:{{ datanommer_password }}@localhost/datanommer',
|
||||
|
||||
# Only allow ajax/websockets connections back to our domains.
|
||||
# https://github.com/fedora-infra/datagrepper/pull/192
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue