copr: frontend: turn db-dumps on

This commit is contained in:
Pavel Raiskup 2019-08-04 18:22:42 +02:00 committed by Pierre-Yves Chibon
parent f3cceded32
commit b0b3de5ec0
3 changed files with 11 additions and 0 deletions

View file

@ -7,3 +7,4 @@
runuser -c 'copr-frontend notify_outdated_chroots' - copr-fe
runuser -c 'copr-frontend delete_outdated_chroots' - copr-fe
/usr/bin/bash /usr/libexec/copr_dump_db.sh

View file

@ -3,6 +3,15 @@
with_items:
- "postgresql-server"
- "postgresql-contrib"
- "httpd-filesystem"
- name: directory for postgresql dumps
file: state=directory path=/var/www/html/db_dumps/
owner=root mode=755
- name: allow postgres writing to db_dumps dir
acl: path=/var/www/html/db_dumps/
entity=postgres permissions=rwx etype=user state=present
- name: See if PostgreSQL is initialized
stat: path=/var/lib/pgsql/data/PG_VERSION

View file

@ -2,6 +2,7 @@ NameVirtualHost *:80
LoadModule wsgi_module modules/mod_wsgi.so
WSGISocketPrefix /var/run/wsgi
Alias /robots.txt /var/www/html/robots.txt
Alias "/db_dumps/" "/var/www/html/db_dumps"
WSGIDaemonProcess 127.0.0.1 user=copr-fe group=copr-fe threads=15 display-name=other maximum-requests=8000 graceful-timeout=20
WSGIDaemonProcess api user=copr-fe group=copr-fe threads=15 display-name=api maximum-requests=8000 graceful-timeout=20