Remove the hardcoded lbry API address #325

Merged
maximest-pierre merged 1 commit from feature/remove_hardcoded_api_adress into master 2018-01-23 19:13:50 +01:00
maximest-pierre commented 2018-01-18 20:33:08 +01:00 (Migrated from github.com)

This fixes issue #324.
The LBRY is no longer hardcoded to localhost and is set by the config file.

I haven't tested it. I ran into some problems while trying to install spee.ch locally on my computer.

This fixes issue #324. The LBRY is no longer hardcoded to localhost and is set by the config file. I haven't tested it. I ran into some problems while trying to install spee.ch locally on my computer.
bones7242 (Migrated from github.com) requested changes 2018-01-23 17:45:31 +01:00
bones7242 (Migrated from github.com) commented 2018-01-23 17:44:13 +01:00

Thanks for the PR!

Define the url string once at the top so the string doesn't have to be constructed repeatedly. Also, the /lbryapi can be dropped. E.g...

const lbryApiUrl = `http://${apiUri}:${apiPort}`;
...
axios.post(lbryApiUrl, ...

If you can make this change I'll merge :)

Thanks for the PR! Define the url string once at the top so the string doesn't have to be constructed repeatedly. Also, the `/lbryapi` can be dropped. E.g... ``` const lbryApiUrl = `http://${apiUri}:${apiPort}`; ... axios.post(lbryApiUrl, ... ``` If you can make this change I'll merge :)
bones7242 (Migrated from github.com) reviewed 2018-01-23 17:46:24 +01:00
bones7242 (Migrated from github.com) commented 2018-01-23 17:46:24 +01:00

Also, let me know your discord handle so I can send you an lbc tip

Also, let me know your discord handle so I can send you an lbc tip
maximest-pierre commented 2018-01-23 18:09:39 +01:00 (Migrated from github.com)

@billbitt I change it as requested.

@billbitt I change it as requested.
bones7242 (Migrated from github.com) approved these changes 2018-01-23 19:13:42 +01:00
bones7242 (Migrated from github.com) left a comment

Thanks!

Thanks!
kauffj (Migrated from github.com) reviewed 2018-01-23 20:51:38 +01:00
@ -36,2 +36,4 @@
testChannelPassword: 'password', // password for the test channel
},
api: {
apiUri: 'localhost',
kauffj (Migrated from github.com) commented 2018-01-23 20:51:38 +01:00

If I'm being pedantic, which I am wont to do, this is more like a host than a URI. All of the parts together comprise the URI.

Here's a reference (this terminology is fairly universal, not google specific): https://www.mattcutts.com/blog/seo-glossary-url-definitions/

If I'm being pedantic, which I am wont to do, this is more like a host than a URI. All of the parts together comprise the URI. Here's a reference (this terminology is fairly universal, not google specific): https://www.mattcutts.com/blog/seo-glossary-url-definitions/
bones7242 (Migrated from github.com) reviewed 2018-01-23 21:35:58 +01:00
@ -36,2 +36,4 @@
testChannelPassword: 'password', // password for the test channel
},
api: {
apiUri: 'localhost',
bones7242 (Migrated from github.com) commented 2018-01-23 21:35:58 +01:00

I'm wont to do it correctly

I'm wont to do it correctly
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/spee.ch#325
No description provided.