Specify whole API base URL in config
This commit is contained in:
parent
caea2d0121
commit
897b5bf4ea
@ -1,4 +1,4 @@
|
||||
EJABBERD_API_URL='https://xmpp.kosmos.org/api'
|
||||
BTCPAY_API_URL='http://localhost:23001'
|
||||
BTCPAY_API_URL='http://localhost:23001/api/v1'
|
||||
LNDHUB_API_URL='http://localhost:3023'
|
||||
LNDHUB_PUBLIC_URL='https://lndhub.kosmos.org'
|
||||
|
@ -1,4 +1,4 @@
|
||||
EJABBERD_API_URL='https://xmpp.kosmos.org:5443/api'
|
||||
BTCPAY_API_URL='http://10.1.1.163:23001'
|
||||
BTCPAY_API_URL='http://10.1.1.163:23001/api/v1'
|
||||
LNDHUB_API_URL='http://10.1.1.163:3023'
|
||||
LNDHUB_PUBLIC_URL='https://lndhub.kosmos.org'
|
||||
|
@ -1,4 +1,4 @@
|
||||
EJABBERD_API_URL='http://xmpp.example.com/api'
|
||||
BTCPAY_API_URL='http://btcpay.example.com'
|
||||
BTCPAY_API_URL='http://btcpay.example.com/api/v1'
|
||||
LNDHUB_API_URL='http://localhost:3023'
|
||||
LNDHUB_PUBLIC_URL='https://lndhub.kosmos.org'
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
class BtcPay
|
||||
def initialize
|
||||
@base_url = "#{ENV["BTCPAY_API_URL"]}/api/v1"
|
||||
@base_url = ENV["BTCPAY_API_URL"]
|
||||
@store_id = Rails.application.credentials.btcpay[:store_id]
|
||||
@auth_token = Rails.application.credentials.btcpay[:auth_token]
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user