mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
added auth_api
This commit is contained in:
parent
ae50c3f526
commit
6ef2b7f488
@ -6,16 +6,19 @@ import defaultRemotesOrigins from "../constants/defaultRemotesOrigins.json"
|
||||
const envOrigins = {
|
||||
"development": {
|
||||
mainApi: `http://${window.location.hostname}:3000`,
|
||||
authApi: `http://${window.location.hostname}:4000`,
|
||||
websocketApi: `ws://${window.location.hostname}:3001`,
|
||||
streamingApi: `http://${window.location.hostname}:3002`,
|
||||
},
|
||||
"indev": {
|
||||
mainApi: "https://indev_api.comty.pw",
|
||||
authApi: `http://indev_auth.comty.pw`,
|
||||
websocketApi: "wss://indev_ws.comty.pw",
|
||||
streamingApi: "https://indev_live.comty.pw",
|
||||
},
|
||||
"nightly": {
|
||||
mainApi: "https://nightly_api.comty.pw",
|
||||
authApi: `https://nightly_auth.comty.pw`,
|
||||
websocketApi: "wss://nightly_ws.comty.pw",
|
||||
streamingApi: "https://nightly_live.comty.pw"
|
||||
}
|
||||
@ -34,6 +37,7 @@ export default {
|
||||
},
|
||||
remotes: {
|
||||
mainApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].mainApi : defaultRemotesOrigins.main_api,
|
||||
authApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].authApi : defaultRemotesOrigins.auth_api,
|
||||
websocketApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].websocketApi : defaultRemotesOrigins.websocket_api,
|
||||
streamingApi: process.env.NODE_ENV !== "production" ? envOrigins[process.env.NODE_ENV].streamingApi : defaultRemotesOrigins.streaming_api,
|
||||
},
|
||||
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"main_api": "https://api.comty.pw",
|
||||
"auth_api": "https://auth.ragestudio.net",
|
||||
"streaming_api": "https://live.comty.pw",
|
||||
"websocket_api": "wss://ws.comty.pw"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user