feat: add tech support role configuration

This commit is contained in:
41666 2022-01-22 18:34:50 -05:00
parent cba0d1f35a
commit 6fb468afc4
3 changed files with 18 additions and 0 deletions

View file

@ -14,3 +14,5 @@ export const rootUsers = list(env('ROOT_USERS'));
export const allowedCallbackHosts = list(env('ALLOWED_CALLBACK_HOSTS'));
export const importSharedKey = env('BOT_IMPORT_TOKEN');
export const interactionsSharedKey = env('INTERACTIONS_SHARED_KEY');
export const roleypolyServerID = env('RP_SERVER_ID');
export const roleypolyHelperRoleIDs = list(env('RP_HELPER_ROLE_IDS'));

View file

@ -73,6 +73,16 @@ resource "cloudflare_worker_script" "backend" {
name = "INTERACTIONS_SHARED_KEY"
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" {

View file

@ -1,3 +1,9 @@
root_users = [
"62601275618889728"
]
rp_server_id = "386659935687147521"
rp_helper_roles = [
"386660833859469313", // developer
"386660970551836672" // helper
]