Keep the pkgdb frontend part before we have pagure plugin released

This commit is contained in:
Michael Simacek 2017-08-16 17:58:09 +02:00
parent f997a31610
commit 23448c31bc

View file

@ -39,11 +39,33 @@ config = {
}, },
}, },
{% if env == 'staging' %} {% if env == 'staging' %}
"plugins": ['copr'], "plugins": ['pkgdb', 'copr'],
{% else %} {% else %}
"plugins": [], "plugins": ['pkgdb'],
{% endif %} {% endif %}
"caching": { "caching": {
"plugin": {
"pkgdb": {
"users": {
"backend": "dogpile.cache.memcached",
"expiration_time": 300,
"arguments": {
"url": "memcached01:11211",
"distributed_lock": True,
},
},
},
},
},
"pkgdb": {
{% if env == 'staging' %}
"pkgdb_url": 'https://admin.stg.fedoraproject.org/pkgdb/api',
"topic_re": r'\.stg\.pkgdb\.',
{% else %}
"pkgdb_url": 'https://admin.fedoraproject.org/pkgdb/api',
"topic_re": r'\.prod\.pkgdb\.',
{% endif %}
"sync_tracked": False,
}, },
"frontend": { "frontend": {
"builds_per_page": 8, "builds_per_page": 8,