This application uses environment variables for sensitive configuration. Copy the .env.example file to create a .env file and fill in your own values:
cp .env.example .envThen edit the .env file with your actual configuration values.
-
SMS Configuration
SMS_SECRET_KEY: Tencent Cloud SMS secret keySMS_SECRET_ID: Tencent Cloud SMS secret IDSMS_SIGN_NAME: SMS signature nameSMS_SDK_APP_ID: SMS SDK application ID
-
OSS Configuration
OSS_ACCESS_KEY_ID: Alibaba Cloud OSS access key IDOSS_ACCESS_KEY_SECRET: Alibaba Cloud OSS access key secretOSS_BUCKET_NAME: OSS bucket name
- Never commit sensitive credentials to Git
- Use environment variables for all secrets
- Keep the
.envfile in your.gitignore