RealDevSquad / RealDevSquad/website-backend
Additional environment variables needed in Staging
@prakashchoudhary07 is already working on this.
Since May 13, 2023.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 276
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 14
Description
The feature create-group-roles and assign-groups requires the following custom variables:
-
Discord base URL of Cloudflare for Athena bot: For making requests, we need the base URL of our Discord bot hosted in Cloudflare workers.
Variable name:DISCORD_BASE_URL
Location:website-backend -
RSA rdsServerlessPrivateKey: For making requests to the discord-bot server, every request must be authenticated with the same key pair that is used to verify in the discord server. Thus, a new key pair with the name
RDS_SERVERLESSis necessary for creating new tokens.
Variable names: -
RDS_SERVERLESS_PRIVATE_KEYfor Website backend -
RDS_SERVERLESS_PUBLIC_KEYfor Cloudflare workers Discord-slash commands -
rdsServerlessTtl: For expiry of the generated token.
Variable name:RDS_SERVERLESS_TTL
Location:website-backend
| Environment Variable Name | Repository |
|---|---|
| RDS_SERVERLESS_PRIVATE_KEY | WEBSITE BACKEND |
| RDS_SERVERLESS_PUBLIC_KEY | DISCORD SLASH COMMANDS |
| RDS_SERVERLESS_TTL | WEBSITE BACKEND |
| DISCORD_BASE_URL | WEBSITE BACKEND |
Specifications of the key:
- Must be of size 2048.
- Must start with
-----BEGIN RSA PRIVATE KEY-----
This requirement is because the package@tsndr/cloudflare-worker-jwtpackage used in thediscord-slash-commandproject has this set of requirements to function.
Updates
- A RSA key is to be generated and its private key named
RDS_SERVERLESS_PRIVATE_KEYis to be set as an environment variable forwebsite-backend. - Its corresponding public key, ' RDS_SERVERLESS_PUBLIC_KEY
, is to be set as an environment variable fordiscord-slash-commands` Cloudflare workers.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.