1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-12-22 13:07:00 +00:00

Add server setting for local instance origin

This commit is contained in:
Cadence Ember 2021-01-21 13:33:46 +13:00
parent 6603358816
commit 0424996e31
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17
2 changed files with 5 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class Refresher {
}
refreshChannel(ucid) {
return fetch(`http://localhost:3000/api/v1/channels/${ucid}/latest`).then(res => res.json()).then(root => {
return fetch(`${constants.server_setup.local_instance_origin}/api/v1/channels/${ucid}/latest`).then(res => res.json()).then(root => {
if (Array.isArray(root)) {
root.forEach(video => {
// organise

View File

@ -16,6 +16,10 @@ let constants = {
}
},
server_setup: {
local_instance_origin: "http://localhost:3000"
},
caching: {
csrf_time: 4*60*60*1000,
seen_token_subscriptions_eligible: 40*60*60*1000,