5 Commits

Author SHA1 Message Date
ccbikai
13b1d7fd8e fix: update Sentry configuration in Docker builds
Improves Sentry integration in Docker builds by:
- Moving Sentry environment variables to build args
- Adding .env to dockerignore for security
- Properly passing Sentry configuration during build process

This change ensures better security practices and more reliable Sentry configuration in containerized environments.
2024-11-23 18:25:40 +08:00
ccbikai
bf2ecfe7a0 refactor: improve security by moving Sentry secrets to environment variables
To enhance security, Sentry authentication tokens and project IDs are now passed as environment variables instead of being exposed in the workflow configuration. This change reduces the risk of sensitive information leakage during the build process. Additionally, the example environment file has been updated to comment out the Sentry-related variables, further protecting against accidental exposure.
2024-10-15 21:11:47 +08:00
ccbikai
a44eeb76eb feat: simplify secret handling in build process
Streamlines the build script by consolidating multiple secret exports into a single command, enhancing maintainability and reducing redundancy.
2024-10-15 21:06:49 +08:00
ccbikai
eb0205a7a9 refactor: improve security by using Docker secrets for Sentry tokens
Enhanced security by integrating Docker secrets for Sentry authentication and project tokens, reducing exposure of sensitive information in environment variables.
2024-10-15 21:03:24 +08:00
ccbikai
2b9807bd89 feat: add Docker support and enhance environment configuration
- Introduce .dockerignore for Docker build optimization
- Add Dockerfile for containerization setup
- Update .env.example to clear Sentry variables and rename HOST to TELEGRAM_HOST
- Modify astro.config.mjs to conditionally exclude SSR dependencies in Docker builds
- Adjust postinstall script to safely handle missing .git directory
- Refactor telegram host retrieval for clarity and consistency
2024-08-31 13:41:16 +08:00