zllovesuki / slugsurvival

Source Code for SlugSurvival.com with Cloudflare Workers Site support
https://slugsurvival.com
GNU General Public License v3.0
14 stars 3 forks source link

Config.json #18

Closed eshimischi closed 6 years ago

eshimischi commented 6 years ago

https://github.com/zllovesuki/slugsurvival/blob/5919be91e39051bbb2a0906c2c7aca67c3f25480/config.js#L3

Where or how to get config.json? No idea

zllovesuki commented 6 years ago

oops my bad. I will add an example ...

eshimischi commented 6 years ago

@zllovesuki still no idea where is ./config/config.json ?

zllovesuki commented 6 years ago

@eshimischi I will add one here for example:

{
    "port": 3001,
    "siteURL": "https://slugsurvival.com",
    "dbURL": "https://slugsurvival.objectstore.co/data",
    "trackingURL": "https://tracking.slugsurvival.com",
    "notifyURL": "https://notification.slugsurvival.com",
    "realtimeURL": "https://realtime.slugsurvival.com"
}

Preferably you would replace those URLs with your own endpoints.

Of those endpoints, siteURL is obviously, the SlugSurvival website, in which the source code is in this repo. Source code for services on trackingURL and notifyURL is currently not available as they are tightly integrated, and it still has the potentials of bringing down the school website (as I've done before and got into trouble).

Source code to obtain data for dbURL can be found in https://github.com/zllovesuki/ucsc. The data is hosted statically (in this case Minio, a S3-compatible object storage).