WIP
parent
f342780f09
commit
6dafbf61d8
|
@ -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
|
||||
|
|
|
@ -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' }
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue