mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
feat: add tech support role configuration
This commit is contained in:
parent
cba0d1f35a
commit
6fb468afc4
3 changed files with 18 additions and 0 deletions
|
@ -14,3 +14,5 @@ export const rootUsers = list(env('ROOT_USERS'));
|
||||||
export const allowedCallbackHosts = list(env('ALLOWED_CALLBACK_HOSTS'));
|
export const allowedCallbackHosts = list(env('ALLOWED_CALLBACK_HOSTS'));
|
||||||
export const importSharedKey = env('BOT_IMPORT_TOKEN');
|
export const importSharedKey = env('BOT_IMPORT_TOKEN');
|
||||||
export const interactionsSharedKey = env('INTERACTIONS_SHARED_KEY');
|
export const interactionsSharedKey = env('INTERACTIONS_SHARED_KEY');
|
||||||
|
export const roleypolyServerID = env('RP_SERVER_ID');
|
||||||
|
export const roleypolyHelperRoleIDs = list(env('RP_HELPER_ROLE_IDS'));
|
||||||
|
|
|
@ -73,6 +73,16 @@ resource "cloudflare_worker_script" "backend" {
|
||||||
name = "INTERACTIONS_SHARED_KEY"
|
name = "INTERACTIONS_SHARED_KEY"
|
||||||
text = random_password.interactions_token.result
|
text = random_password.interactions_token.result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plain_text_binding {
|
||||||
|
name = "RP_SERVER_ID"
|
||||||
|
text = var.rp_server_id
|
||||||
|
}
|
||||||
|
|
||||||
|
plain_text_binding {
|
||||||
|
name = "RP_HELPER_ROLE_IDS"
|
||||||
|
text = join(",", var.rp_helper_roles)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "api" {
|
resource "cloudflare_record" "api" {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
root_users = [
|
root_users = [
|
||||||
"62601275618889728"
|
"62601275618889728"
|
||||||
|
]
|
||||||
|
|
||||||
|
rp_server_id = "386659935687147521"
|
||||||
|
rp_helper_roles = [
|
||||||
|
"386660833859469313", // developer
|
||||||
|
"386660970551836672" // helper
|
||||||
]
|
]
|
Loading…
Add table
Reference in a new issue