Merge branch 'master' of gitlab.crans.org:nounous/cransticket
This commit is contained in:
commit
fb298f5d8d
1 changed files with 6 additions and 2 deletions
|
@ -2,11 +2,15 @@
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
from gestion import secrets_new as secrets
|
||||||
import pika
|
import pika
|
||||||
import json
|
import json
|
||||||
import config
|
|
||||||
|
|
||||||
rabbit_c = pika.BlockingConnection(config.PARAMS)
|
CREDS = pika.credentials.PlainCredentials('oie', secrets.get('rabbitmq_oie'), True)
|
||||||
|
PARAMS = pika.ConnectionParameters(host='rabbitmq.crans.org',
|
||||||
|
port=5671, credentials=CREDS, ssl=True)
|
||||||
|
rabbit_c = pika.BlockingConnection(PARAMS)
|
||||||
|
|
||||||
ch = rabbit_c.channel()
|
ch = rabbit_c.channel()
|
||||||
ch.queue_declare('CransTicket')
|
ch.queue_declare('CransTicket')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue