Commit Graph

9 Commits

Author SHA1 Message Date
6fa07b4b63 Enhance SMTP configuration in docker-compose and email handler
- Updated docker-compose.yml to include optional SMTP settings with comments for clarity on configuration.
- Modified email-handler.ts to prioritize FROM_EMAIL for the sender address, falling back to SMTP_USER or ADMIN_EMAIL if not set, improving email handling flexibility.
2025-11-18 22:44:58 +01:00
db6270438f Enhance development and production scripts in package.json and update README for CSP testing
- Added new npm scripts for production testing with Content Security Policy: `dev:prod` and `preview:prod`.
- Updated README.md to include detailed instructions for development, production testing, and a pre-deployment checklist to ensure security settings are verified before deployment.
2025-11-06 12:54:47 +01:00
993d16d920 Update Content-Security-Policy in server.js to enhance security
- Modified the Content-Security-Policy to allow 'unsafe-inline' for script-src, improving compatibility with existing scripts while maintaining security measures.
2025-11-06 12:40:45 +01:00
efcb325f64 Update Content-Security-Policy in server.js and _headers for enhanced security
- Modified the Content-Security-Policy to include specific domains for default-src and connect-src, improving security and flexibility.
- Updated the commented-out Content-Security-Policy in the _headers file to reflect the same changes for consistency.
2025-11-04 23:43:00 +01:00
f7645b7b25 Update dependencies, enhance security headers, and add brand information to translations
- Updated various dependencies in package.json and package-lock.json for improved performance and security.
- Changed Cross-Origin-Embedder-Policy from 'require-corp' to 'credentialless' in server.js and nginx.conf for better compatibility.
- Enhanced Content-Security-Policy to include specific domains for script and connect sources.
- Added brand information to translations for multiple languages, improving localization and user experience.
- Introduced a new BrandMarquee component in the homepage layout to showcase brands effectively.
2025-11-04 23:35:04 +01:00
3b28d1c52d Integrate dotenv for environment variable management and enhance form error handling
- Added dotenv to load environment variables from a .env file in server.js for better configuration management.
- Improved the Form component by refining error handling during form submission, including specific messages for different error scenarios.
- Updated the CSRF token handling and ensured proper validation of response types from the contact API.
- Enhanced user feedback by providing clearer messages for success and error states in the form submission process.
2025-11-02 02:06:29 +01:00
a767dbb115 Enhance security and localization features across the application
- Added rehype-sanitize plugin to the markdown configuration for improved security against XSS attacks.
- Updated environment variables in the codebase to include new configurations for SMTP and monitoring.
- Implemented secure headers in server and Nginx configurations to bolster security.
- Refactored email handling to prevent spoofing by ensuring safe sender addresses.
- Improved localization by updating language persistence and button components for better user experience.
- Enhanced the uptime API and contact form with better error handling and logging practices.
- Updated dependencies in package.json and package-lock.json for better performance and security.
2025-10-19 21:13:15 +02:00
becarta
0b59b3b977 Update server configuration and translations for improved deployment and user experience
- Enhanced server startup message to include dynamic protocol and domain based on the environment (production or development).
- Updated translation references from GitHub to Gitea across multiple languages for consistency.
- Refactored layout and metadata in Astro components to utilize SITE configuration for URLs, ensuring accurate site links.
- Cleaned up unused code in the layout file and removed commented-out sections for better readability.
2025-07-18 08:16:10 +02:00
efdd0c28d4 Update Astro configuration to use Fastify adapter and include prefetch integration
- Replaced the Node adapter with Fastify for improved performance.
- Added the @astrojs/prefetch integration to enhance resource loading.
- Updated server settings to adjust logging level and minification options.
- Modified package.json to include new dependencies for Fastify and prefetch.
2025-07-02 22:52:53 +02:00