From 735d46dc984e3bf913d0347002e2bf6e291357a8 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Wed, 20 Jan 2021 15:55:59 +0100 Subject: [PATCH] Adjust the sqlalchemy url and CSP info for datagrepper Signed-off-by: Pierre-Yves Chibon --- ansible/roles/datagrepper/templates/datagrepper-fedmsg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/datagrepper/templates/datagrepper-fedmsg.py b/ansible/roles/datagrepper/templates/datagrepper-fedmsg.py index 923eb87..80d09ac 100644 --- a/ansible/roles/datagrepper/templates/datagrepper-fedmsg.py +++ b/ansible/roles/datagrepper/templates/datagrepper-fedmsg.py @@ -8,9 +8,9 @@ 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. - 'datanommer.sqlalchemy.url': 'postgresql://{{ datanommer_user }}:{{ datanommer_password }}@localhost/datanommer', + 'datanommer.sqlalchemy.url': 'postgresql://{{ datanommer_user }}:{{ datanommer_password }}@127.0.0.1:5432/datanommer', # Only allow ajax/websockets connections back to our domains. # https://github.com/fedora-infra/datagrepper/pull/192 - 'content_security_policy': 'connect-src https://*.fedoraproject.org wss://*.fedoraproject.org' + 'content_security_policy': 'connect-src https://*.fedoraproject.org wss://*.fedoraproject.org http://100.26.18.234 http://*arc.fedorainfracloud.org' }