pull/895/head
Rick Carlino 2018-06-20 16:05:45 -05:00
parent f342780f09
commit 6dafbf61d8
4 changed files with 13 additions and 4 deletions

View File

@ -12,17 +12,17 @@ module Api
end
def vhost
binding.pry
# binding.pry
render json: "allow"
end
def resource
binding.pry
# binding.pry
render json: "allow"
end
def topic
binding.pry
# binding.pry
render json: "allow"
end
end

View File

@ -2,7 +2,8 @@ require "bunny"
# A wrapper around AMQP to stay DRY. Will make life easier if we ever need to
# change protocols
class Transport
LOCAL = "amqp://guest:guest@localhost:5672"
LOCAL = "amqp://guest:guest@#192.168.1.207:5672"
puts "Fix Transport::LOCAL"
AMQP_URL = ENV['CLOUDAMQP_URL'] || ENV['RABBITMQ_URL'] || LOCAL
OPTS = { read_timeout: 10, heartbeat: 10, log_level: 'info' }

View File

@ -9,4 +9,8 @@ auth_http.topic_path = http://192.168.1.207:3000/api/rmq/topic
auth_http.user_path = http://192.168.1.207:3000/api/rmq/user
auth_http.vhost_path = http://192.168.1.207:3000/api/rmq/vhost
default_user = "farmbot_admin"
default_pass = "farmbot_password"
loopback_users = none
mqtt.allow_anonymous = false

View File

@ -9,4 +9,8 @@ auth_http.topic_path = <%= fully_formed_url %>/api/rmq/topic
auth_http.user_path = <%= fully_formed_url %>/api/rmq/user
auth_http.vhost_path = <%= fully_formed_url %>/api/rmq/vhost
default_user = "farmbot_admin"
default_pass = "farmbot_password"
loopback_users = none
mqtt.allow_anonymous = false