Skip to content

refactor: simplify environment variables#1897

Merged
spaenleh merged 5 commits into
mainfrom
simplify-env
Jun 6, 2025
Merged

refactor: simplify environment variables#1897
spaenleh merged 5 commits into
mainfrom
simplify-env

Conversation

@pyphilia
Copy link
Copy Markdown
Contributor

@pyphilia pyphilia commented Jun 6, 2025

new env: REDIS_CONNECTION, MAILER_CONNECTION

Remove:

  • MAILER_CONFIG_SMTP_HOST
  • MAILER_CONFIG_SMTP_PORT
  • MAILER_CONFIG_SMTP_USE_SSL
  • MAILER_CONFIG_USERNAME
  • MAILER_CONFIG_PASSWORD
  • REDIS_HOST
  • REDIS_PORT
  • REDIS_PASSWORD
  • REDIS_USERNAME
  • AUTH_TOKEN_EXPIRATION_IN_MINUTES
  • REFRESH_TOKEN_EXPIRATION_IN_MINUTES
  • PASSWORD_RESET_JWT_EXPIRATION_IN_MINUTES
  • EMAIL_CHANGE_JWT_EXPIRATION_IN_MINUTES

@pyphilia pyphilia self-assigned this Jun 6, 2025
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 6, 2025

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@pyphilia pyphilia requested a review from spaenleh June 6, 2025 12:36
@pyphilia pyphilia marked this pull request as ready for review June 6, 2025 12:36
Copy link
Copy Markdown
Member

@spaenleh spaenleh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice ! this looks so much better, thank you so much !

Comment thread README.md
Comment thread src/utils/config.ts
@spaenleh
Copy link
Copy Markdown
Member

spaenleh commented Jun 6, 2025

@pyphilia I have marked the SonarCloud issue related to SSL and SMTP as safe since we will be using smtps in production. Can you confirm this is the case ?

@pyphilia
Copy link
Copy Markdown
Contributor Author

pyphilia commented Jun 6, 2025

Since we are hosting on aws, I think they don't even allow you to use smtp without security. Even dev is setup with smtps by default.

@spaenleh
Copy link
Copy Markdown
Member

spaenleh commented Jun 6, 2025

Yes, with "production" I meant anything not in local dev. So the answer is yes. Thank you for confirming.

@spaenleh spaenleh merged commit 041bcab into main Jun 6, 2025
9 checks passed
@spaenleh spaenleh deleted the simplify-env branch June 6, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants