Commit Graph

193 Commits

Author SHA1 Message Date
denshooter
a5e5425c33 Fix ESLint error in jest.setup.ts
Some checks failed
CI/CD Pipeline (Using Gitea Variables & Secrets) / production (push) Failing after 8m59s
Test Gitea Variables and Secrets / test-variables (push) Successful in 3s
- Change @ts-ignore to @ts-expect-error as required by ESLint
- Simplify React.act mock to avoid TypeScript complexity
- Ensures linting passes in pre-push checks
2025-10-15 16:10:21 +02:00
denshooter
1901dd44b8 Fix TypeScript error in jest.setup.ts
- Update React.act mock to handle both sync and async callbacks
- Fix type compatibility with React's act function signature
- Ensures proper TypeScript compilation during build
2025-10-15 16:09:48 +02:00
denshooter
aaf80244d7 Update pre-push hook to use production test configuration
- Change from npm run test to npm run test:production
- This ensures the pre-push checks use the same test configuration as CI
- Fixes the test failures that were blocking pushes
2025-10-15 16:09:19 +02:00
denshooter
9b842bd87b Fix ESLint error in jest.setup.ts
- Remove require() import that was causing linting error
- Simplify React act() function mocking for production builds
2025-10-15 16:08:29 +02:00
denshooter
6680d707f1 Refactor CI/CD workflows and configuration files
- Removed unused network configurations from docker-compose.yml.
- Added production-specific Jest configuration in jest.config.production.ts for better test management.
- Updated jest.config.ts to include production build fixes and module resolution improvements.
- Enhanced jest.setup.ts to mock React's act function for production builds.
- Introduced new CI/CD workflows for Gitea, focusing on reliability and zero downtime deployments.
- Added scripts for debugging Gitea Actions and verifying environment variables.

These changes streamline the CI/CD process and improve testing capabilities.
2025-10-15 16:07:35 +02:00
denshooter
9f305d3e78 Fix environment variables in deployment scripts
Some checks failed
CI/CD Pipeline (Reliable & Simple) / production (push) Failing after 8m25s
CI/CD Pipeline (Simple & Reliable) / production (push) Failing after 6m28s
- Export all environment variables before deployment to ensure they're available to child processes
- Add logging to show which variables are configured (without revealing secrets)
- This fixes docker-compose warnings about missing environment variables
- Ensures both docker run and docker-compose scenarios work correctly

Updated scripts:
- scripts/gitea-deploy.sh
- scripts/gitea-deploy-simple.sh
2025-10-15 15:39:00 +02:00
denshooter
04522d3093 Fix CI/CD root user error in deployment scripts
Some checks failed
CI/CD Pipeline (Reliable & Simple) / production (push) Failing after 9m5s
CI/CD Pipeline (Simple & Reliable) / production (push) Failing after 6m29s
- Modify root checks to allow running as root in CI environments
- Add conditional check: only prevent root when not in CI (CI env var not set)
- Updated scripts:
  - scripts/gitea-deploy.sh
  - scripts/gitea-deploy-simple.sh
  - scripts/deploy.sh
  - scripts/auto-deploy.sh
  - scripts/setup-gitea-runner.sh

This fixes the 'This script should not be run as root' error in Gitea Actions
where containers run as root by default.
2025-10-15 15:14:22 +02:00
Denshooter
8d65e2d7c3 Merge branch 'production' of https://git.dk0.dev/denshooter/portfolio into production
Some checks failed
CI/CD Pipeline (Reliable & Simple) / production (push) Failing after 8m19s
CI/CD Pipeline (Simple & Reliable) / production (push) Failing after 6m15s
2025-09-16 00:30:20 +02:00
Denshooter
dca8cb8973 Fix CI/CD: Switch from Gitea Actions to Woodpecker CI workflow
- Disabled ci-cd-fast.yml (Gitea Actions syntax)
- Added ci-cd-woodpecker.yml (proper Woodpecker CI syntax)
- Fixed environment variable and secret access
- Should resolve deployment issues with missing variables
2025-09-16 00:29:23 +02:00
denshooter
f66844870a Fix nginx startup script syntax errors
Some checks failed
CI/CD Pipeline (Fast) / production (push) Successful in 6m41s
CI/CD Pipeline (Reliable & Simple) / production (push) Failing after 8m42s
CI/CD Pipeline (Simple & Reliable) / production (push) Failing after 6m15s
- Simplify nginx startup command to avoid YAML syntax issues
- Remove complex fallback configuration that was causing shell errors
- nginx now starts successfully and serves the application correctly

Tested locally: nginx responds to /health and / endpoints properly.
2025-09-16 00:03:01 +02:00
denshooter
6be2feb8dd 🔧 Add PowerShell script for Bitwarden .env synchronization
Some checks failed
CI/CD Pipeline (Reliable & Simple) / production (push) Has been cancelled
CI/CD Pipeline (Simple & Reliable) / production (push) Has been cancelled
CI/CD Pipeline (Fast) / production (push) Has been cancelled
- Introduced `sync-env.ps1` to facilitate the synchronization of environment variables from Bitwarden on Windows.
- Implemented checks for Bitwarden CLI installation and authentication status.
- Added functionality to fetch environment variables from a specified Bitwarden item and create/update a `.env` file.
- Enhanced user feedback with clear error messages and success confirmations.

 This script streamlines the management of environment variables by integrating with Bitwarden, ensuring secure and efficient updates.
2025-09-16 00:00:07 +02:00
denshooter
efda383bd8 Fix nginx configuration syntax errors
Some checks failed
CI/CD Pipeline (Fast) / production (push) Successful in 6m44s
CI/CD Pipeline (Simple & Reliable) / production (push) Has been cancelled
CI/CD Pipeline (Reliable & Simple) / production (push) Has been cancelled
- Move proxy_set_header directives inside location blocks
- Add DNS resolver for dynamic upstream resolution
- Improve fallback configuration in docker-compose
- Add config validation before starting nginx

This should resolve the nginx startup failures.
2025-09-15 23:51:59 +02:00
denshooter
9c6b313435 Fix nginx configuration conflict in docker-compose
Some checks failed
CI/CD Pipeline (Reliable & Simple) / production (push) Has been cancelled
CI/CD Pipeline (Simple & Reliable) / production (push) Has been cancelled
CI/CD Pipeline (Fast) / production (push) Has been cancelled
- Remove default nginx configuration files to prevent conflicts
- Add command to clear /etc/nginx/conf.d/* before starting nginx
- This fixes the 'events directive not allowed here' error
2025-09-15 23:48:46 +02:00
denshooter
b06151739f 🔧 Add Bitwarden .env sync script for environment variable management
Some checks failed
CI/CD Pipeline (Reliable & Simple) / production (push) Has been cancelled
CI/CD Pipeline (Simple & Reliable) / production (push) Has been cancelled
CI/CD Pipeline (Fast) / production (push) Has been cancelled
- Introduced `sync-env.sh` to automate the synchronization of environment variables from Bitwarden.
- Implemented authentication with Bitwarden CLI, including session management and error handling.
- Added functionality to fetch environment variables from Bitwarden items and create/update a `.env` file in the specified target directory.
- Included logging for debugging and operational transparency.

 This script enhances the management of environment variables by integrating with Bitwarden, ensuring secure and efficient updates.
2025-09-15 23:42:52 +02:00
denshooter
ed95163f55 🔧 Improve health check logic in Gitea workflows
Some checks failed
CI/CD Pipeline (Fast) / production (push) Successful in 7m47s
CI/CD Pipeline (Reliable & Simple) / production (push) Failing after 8m46s
CI/CD Pipeline (Simple & Reliable) / production (push) Failing after 6m17s
- Enhanced health check mechanisms in `ci-cd-fast.yml` and `ci-cd-zero-downtime-fixed.yml` to utilize `docker exec` for internal checks, addressing issues with direct port access.
- Updated health check logic to provide better error messages and fallback methods, ensuring more reliable deployment verification.
- Documented changes in `DEPLOYMENT-FIXES.md` to reflect improvements in health check processes.

 These updates enhance the reliability of health checks during deployments and improve debugging capabilities.
2025-09-15 14:15:49 +02:00
denshooter
fc3f9ebf12 🔧 Enhance Gitea deployment workflows and fix nginx configuration
Some checks failed
CI/CD Pipeline (Fast) / production (push) Failing after 6m12s
CI/CD Pipeline (Reliable & Simple) / production (push) Failing after 8m16s
CI/CD Pipeline (Simple & Reliable) / production (push) Failing after 6m19s
- Added new CI/CD workflow `ci-cd-reliable.yml` for reliable deployments with database support.
- Created `docker-compose.zero-downtime-fixed.yml` to address nginx configuration issues for zero-downtime deployments.
- Improved existing workflows to check for nginx configuration file and create a fallback if missing.
- Updated `DEPLOYMENT-FIXES.md` to document new workflows and fixes.

 These changes improve deployment reliability and ensure proper nginx configuration for seamless updates.
2025-09-14 19:11:37 +02:00
denshooter
ca2cbc2c92 🔧 Implement deployment fixes and enhance Gitea workflows
Some checks failed
CI/CD Pipeline (Fast) / production (push) Failing after 6m6s
CI/CD Pipeline (Simple & Reliable) / production (push) Failing after 6m15s
CI/CD Pipeline (Zero Downtime - Fixed) / production (push) Failing after 7m59s
- Created `DEPLOYMENT-FIXES.md` to document issues and solutions for Gitea Actions.
- Fixed Dockerfile path for standalone build.
- Enhanced `gitea-deploy.sh` with improved environment variable handling and extended health check timeouts.
- Introduced `gitea-deploy-simple.sh` for simplified deployments without database dependencies.
- Updated Next.js configuration to resolve build issues.
- Improved health check logic and error handling across all Gitea workflows.

 These changes enhance deployment reliability and provide better debugging information.
2025-09-13 23:48:50 +02:00
denshooter
cc5009a0d6 🔧 Update Next.js configuration and enhance Gitea deployment script
Some checks failed
CI/CD Pipeline (Fast) / production (push) Failing after 5m1s
CI/CD Pipeline (Zero Downtime - Fixed) / production (push) Has been cancelled
- Added serverRuntimeConfig to next.config.ts for improved server-side configuration.
- Updated gitea-deploy.sh to include additional environment variables for deployment.
- Increased sleep duration and health check timeout for better container readiness verification.
- Implemented checks to ensure the container is running during health checks and logs container status if it fails.

 Enhancements improve deployment reliability and server configuration management.
2025-09-13 23:37:53 +02:00
denshooter
116dac89b3 🔧 Fix Gitea Actions for zero-downtime deployment
- Create new ci-cd-zero-downtime-fixed.yml workflow
- Disable old workflows that try to access port 3000 directly
- New workflow uses docker-compose.zero-downtime.yml
- Health checks now use nginx on port 80 instead of direct port 3000
- Fixes the 'Connection refused' errors in Gitea Actions

 Actions now properly work with zero-downtime nginx setup
2025-09-13 23:20:51 +02:00
denshooter
3dbe80edcc 🔧 Fix zero-downtime deployment issues
Some checks failed
CI/CD Pipeline (Fast) / production (push) Failing after 5m10s
CI/CD Pipeline (Zero Downtime) / production (push) Failing after 7m53s
CI/CD Pipeline (Simple) / production (push) Failing after 9m14s
- Fix Dockerfile standalone build path from /app/.next/standalone/gitea/portfolio to /app/.next/standalone/app
- Fix nginx configuration by removing conflicting server blocks
- Consolidate health check and main proxy into single server block
- Ensure proper load balancing between portfolio-app-1 and portfolio-app-2

 Deployment now working successfully with:
- Application running on both instances (healthy)
- Database and Redis running (healthy)
- Nginx load balancer working
- Health endpoints accessible
- Main portfolio site accessible at http://localhost/
2025-09-13 22:31:39 +02:00
denshooter
bdc38d8b57 Fix container conflicts and environment variables properly
Some checks failed
CI/CD Pipeline (Fast) / production (push) Failing after 3m40s
CI/CD Pipeline (Zero Downtime) / production (push) Failing after 7m57s
CI/CD Pipeline (Simple) / production (push) Failing after 9m21s
- Add aggressive container cleanup including specific problematic container ID
- Export environment variables before docker compose commands
- Remove all containers with 'portfolio' in name to prevent conflicts
- Fix both rolling update and fresh deployment cases
- Tested locally and verified working
- Environment variables now properly passed to docker compose
2025-09-13 21:12:32 +02:00
denshooter
6338a34612 Fix container conflicts and environment variables
Some checks failed
CI/CD Pipeline (Fast) / production (push) Failing after 3m40s
CI/CD Pipeline (Zero Downtime) / production (push) Failing after 7m53s
CI/CD Pipeline (Simple) / production (push) Has been cancelled
- Add comprehensive container cleanup before starting services
- Pass environment variables to docker compose commands
- Fix container name conflicts by removing all existing containers first
- Add local test script to verify deployment process
- Ensure clean environment for zero-downtime deployments
2025-09-13 20:59:01 +02:00
denshooter
58dd60ea64 Force remove problematic container and improve Node.js setup
Some checks failed
CI/CD Pipeline (Fast) / production (push) Failing after 4m18s
CI/CD Pipeline (Zero Downtime) / production (push) Failing after 7m51s
CI/CD Pipeline (Simple) / production (push) Failing after 7m53s
- Add specific removal of problematic container afa9a70588844b06e17d5e0527119d589a7a3fde8a17608447cf7d8d448cf261
- Force remove portfolio-app-new container before deployment
- Add container listing for debugging after cleanup
- Upgrade setup-node to v4 for better performance
- Add cache-dependency-path for more efficient caching
- Create fast workflow alternative with manual cache management
2025-09-13 18:44:54 +02:00
denshooter
65ad26eeae Enhance container cleanup for zero-downtime deployment
Some checks failed
CI/CD Pipeline (Zero Downtime) / production (push) Failing after 7m57s
CI/CD Pipeline (Simple) / production (push) Failing after 7m54s
- Add comprehensive cleanup of all portfolio-app containers
- Dynamically find and remove containers with portfolio-app in name
- Remove specific problematic container names (portfolio-app-new, etc.)
- Add container pruning to clean up stopped containers
- Ensure clean environment before starting new temporary container
- Prevents any container name conflicts during deployment
2025-09-13 18:21:36 +02:00
denshooter
20a6c416e3 Fix container name conflicts in zero-downtime deployment
Some checks failed
CI/CD Pipeline (Zero Downtime) / production (push) Failing after 7m55s
CI/CD Pipeline (Simple) / production (push) Failing after 7m53s
- Use unique timestamp-based container names to avoid conflicts
- Clean up existing temporary containers before starting new ones
- Generate unique names like 'portfolio-app-temp-1234567890'
- Prevents 'container name already in use' errors
- Ensures reliable zero-downtime deployments
2025-09-13 01:24:34 +02:00
denshooter
89e0f9f2f8 Fix port conflict in zero-downtime deployment
Some checks failed
CI/CD Pipeline (Zero Downtime) / production (push) Failing after 7m49s
CI/CD Pipeline (Simple) / production (push) Has been cancelled
- Remove port mapping for temporary container to avoid conflicts
- Use docker exec for health checks instead of external port access
- Eliminates 'port already allocated' error
- Maintains zero-downtime functionality without port conflicts
2025-09-13 01:13:43 +02:00
denshooter
8d627028cb Implement zero-downtime deployment strategy
Some checks failed
CI/CD Pipeline (Zero Downtime) / production (push) Failing after 7m51s
CI/CD Pipeline (Simple) / production (push) Has been cancelled
- Add rolling update mechanism for seamless deployments
- Start new container on port 3001, health check, then switch
- Preserve database and redis connections during updates
- Automatic fallback to fresh deployment if no current container
- Add advanced nginx load balancer configuration for future use
- Eliminate container name conflicts with proper cleanup
- Website stays online during deployments
2025-09-13 01:02:37 +02:00
denshooter
8afc63ef0b Separate CI/CD workflows for clarity
Some checks failed
CI/CD Pipeline (Simple) / production (push) Failing after 7m52s
- Split CI/CD into two distinct workflows:
  - 'Test and Build' for main branch (testing only)
  - 'CI/CD Pipeline' for production branch (full deployment)
- Remove duplicate test-and-build job from production workflow
- Each workflow now has a single, clear purpose
- Eliminates confusion with multiple job views in Gitea
2025-09-13 00:39:08 +02:00
denshooter
72456aa7a0 Fix Docker Compose command syntax
Some checks failed
CI/CD Pipeline (Simple) / test-and-build (push) Has been skipped
CI/CD Pipeline (Simple) / production (push) Has been cancelled
- Replace deprecated 'docker-compose' with modern 'docker compose'
- Update all workflow files to use new syntax
- Update documentation with correct commands
- Fixes 'command not found' error in CI/CD pipeline
- Compatible with Docker Compose V2 and newer versions
2025-09-13 00:35:02 +02:00
denshooter
4ccb2b146d Update workflows to match actual Variables and Secrets configuration
Some checks failed
CI/CD Pipeline (Simple) / test-and-build (push) Has been skipped
CI/CD Pipeline (Simple) / production (push) Failing after 7m54s
- Use Variables for non-sensitive data (NODE_ENV, LOG_LEVEL, URLs, emails)
- Use Secrets for sensitive data (passwords, auth tokens)
- Add all configured variables: NODE_ENV, LOG_LEVEL, UMAMI analytics
- Update verification checks to match actual configuration
- Improve debug workflow to show Variables vs Secrets clearly
- Fix environment variable mapping in Docker Compose deployment
2025-09-13 00:16:43 +02:00
denshooter
e245e8afe1 Support both Variables and Secrets in workflows
Some checks failed
CI/CD Pipeline (Simple) / test-and-build (push) Has been skipped
CI/CD Pipeline (Simple) / production (push) Has been cancelled
- Allow NEXT_PUBLIC_BASE_URL to be set as either Variable or Secret
- Update CI/CD workflow to check both secrets and variables
- Update debug workflow to show whether values come from secrets or variables
- Use fallback syntax: secrets.VAR || vars.VAR
- Improve error messages to guide users to correct settings location
2025-09-13 00:12:20 +02:00
denshooter
5a14efb5fc Make Docker mandatory for pre-push hook
Some checks failed
CI/CD Pipeline (Simple) / test-and-build (push) Has been skipped
CI/CD Pipeline (Simple) / production (push) Failing after 7m53s
- Docker must be running and functional before push is allowed
- Added comprehensive Docker status checks (info + hello-world test)
- Enhanced error messages with platform-specific Docker start instructions
- Improved build error reporting with detailed log output
- Added common troubleshooting tips for Docker build failures
- Push will fail if Docker is not available or build fails
2025-09-12 23:36:42 +02:00
denshooter
7f6694622c Fix React DOM warnings and improve pre-push hook
Some checks failed
CI/CD Pipeline (Simple) / test-and-build (push) Has been cancelled
CI/CD Pipeline (Simple) / production (push) Has been cancelled
- Fix fill and priority boolean attributes in Hero component
- Improve next/image mock in Jest setup to handle boolean props correctly
- Enhance pre-push hook with better Docker detection and error handling
- Make Docker build test non-blocking (warnings instead of errors)
- Add executable permissions for secret check script
- Prevent React DOM warnings in tests
2025-09-12 23:34:11 +02:00
denshooter
83705af7f6 cleanup and Test pre-push hook 2025-09-12 23:31:46 +02:00
denshooter
b34deb3c81 Optimize CI/CD pipeline - remove redundant builds
Some checks failed
CI/CD Pipeline (Simple) / test-and-build (push) Has been cancelled
CI/CD Pipeline (Simple) / production (push) Has been cancelled
CI/CD Pipeline / test (push) Successful in 8m40s
Security Scan / security (push) Successful in 7m47s
CI/CD Pipeline / security (push) Successful in 5m14s
CI/CD Pipeline / build (push) Successful in 4m1s
CI/CD Pipeline / deploy (push) Failing after 24s
- Replace inefficient multi-job pipeline with simple single-job approach
- Eliminate duplicate builds (npm build + docker build)
- Reduce pipeline complexity and execution time
- Keep old pipeline as backup (ci-cd-old.yml)
- Simple pipeline: Install → Lint → Test → Build → Security → Deploy (production only)
- Non-production branches: Install → Lint → Test → Build → Security
2025-09-12 23:28:11 +02:00
denshooter
a4c61172f6 Fix Gitea Actions compatibility and improve container configuration
Some checks failed
CI/CD Pipeline / test (push) Successful in 9m19s
CI/CD Pipeline / security (push) Has been cancelled
CI/CD Pipeline / build (push) Has been cancelled
CI/CD Pipeline / deploy (push) Has been cancelled
Security Scan / security (push) Has been cancelled
- Update all GitHub Actions to v3 for Gitea compatibility
- Fix artifact upload/download actions (v4 -> v3)
- Remove GitHub-specific features (GITHUB_STEP_SUMMARY)
- Add complete Docker Compose configuration with PostgreSQL and Redis
- Add environment secrets support for all workflows
- Add debug workflow for secrets verification
- Add comprehensive documentation for secrets setup
- Improve container networking and health checks
2025-09-12 23:18:01 +02:00
denshooter
f7e0172111 Refactor security scanning and database setup
Some checks failed
CI/CD Pipeline / test (push) Successful in 10m54s
Security Scan / security (push) Failing after 5m21s
CI/CD Pipeline / security (push) Successful in 5m25s
CI/CD Pipeline / build (push) Failing after 2m27s
CI/CD Pipeline / deploy (push) Has been skipped
- Update security scan workflow to utilize a dedicated script for checking secrets, improving detection accuracy.
- Modify database connection setup in multiple scripts to use an environment variable fallback for DATABASE_URL, enhancing flexibility in different environments.
2025-09-11 11:17:35 +02:00
denshooter
c4bc27273e Implement security scanning workflows and scripts
Some checks failed
CI/CD Pipeline / test (push) Successful in 10m59s
Security Scan / security (push) Failing after 5m27s
CI/CD Pipeline / security (push) Successful in 5m57s
CI/CD Pipeline / build (push) Failing after 3m3s
CI/CD Pipeline / deploy (push) Has been skipped
- Update CI/CD workflow to use specific Trivy version and change output format for vulnerability results.
- Add fallback npm audit step in case Trivy scan fails.
- Create a new security scan workflow that runs on push and pull request events, including scheduled scans.
- Introduce a security scan script to perform npm audit, Trivy scans, and check for potential secrets in the codebase.
- Ensure results are uploaded as artifacts for review and maintain retention policies for scan results.
2025-09-11 10:44:03 +02:00
denshooter
519ca43168 Update Dockerfile and Next.js configuration; enhance contact components
Some checks failed
CI/CD Pipeline / test (push) Successful in 10m55s
CI/CD Pipeline / security (push) Failing after 5m20s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
- Modify Dockerfile to install curl without recommended packages for a leaner image.
- Update Next.js configuration to set outputFileTracingRoot for better Docker compatibility.
- Revise contact components to improve messaging and clarity, changing "Get In Touch" to "Contact Me" and enhancing descriptions for collaboration opportunities.
- Clean up Prisma schema by removing unnecessary comments and restructuring the Project model for clarity.
2025-09-11 10:13:35 +02:00
denshooter
09d925745d Update Docker configuration and add Gitea CI/CD workflows
Some checks failed
CI/CD Pipeline / test (push) Successful in 12m0s
CI/CD Pipeline / security (push) Failing after 6m6s
CI/CD Pipeline / build (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
- Change Docker image in docker-compose.prod.yml to use 'portfolio-app:latest'.
- Add new scripts for Gitea deployment and setup of Gitea runner.
- Introduce CI/CD workflows for automated testing, security scanning, and deployment in Gitea.
- Enhance package.json with new deployment scripts for Gitea integration.
2025-09-10 15:14:55 +02:00
denshooter
07cf999a9e Fix Docker deployment - use built image instead of building locally
- Change docker-compose.prod.yml to use ghcr.io image instead of building
- Add --force-recreate flag to ensure new container is created
- Add docker image prune to remove old images
- This should fix the issue where old container version is served
2025-09-10 12:01:56 +02:00
denshooter
8ea4fc3fd3 Fix caching issues - disable static generation and add cache-busting headers
- Disable generateStaticParams to prevent static generation
- Add Cache-Control headers to force revalidation
- This should fix the issue where new routes are not available after deployment
2025-09-10 11:46:52 +02:00
denshooter
0bcba1643e Trigger deployment - force rebuild 2025-09-10 11:44:43 +02:00
denshooter
24ecc720c5 Fix final merge conflict marker in email/respond/route.tsx 2025-09-10 11:14:20 +02:00
denshooter
690d9e1cfb Fix remaining merge conflicts and linter errors
- Remove merge conflict markers from AnalyticsDashboard.tsx
- Fix merge conflicts in email/respond/route.tsx
- Use dev versions of EmailManager and ModernAdminDashboard
- Add eslint-disable for Image icon in editor
2025-09-10 11:13:27 +02:00
denshooter
b44250fe0e Merge dev branch into production - resolve conflicts
- Updated admin URLs from /admin to /manage
- Integrated new admin dashboard and email management features
- Added authentication system and project management
- Resolved conflicts in DEV-SETUP.md, README.md, email routes, and components
- Removed old admin page in favor of new manage page
2025-09-10 11:06:36 +02:00
denshooter
2f40fc6753 huge update 2025-09-10 10:59:14 +02:00
denshooter
be01ee2adb 🔧 Enhance Middleware and Admin Features
 Updated Middleware Logic:
- Enhanced admin route protection with Basic Auth for legacy routes and session-based auth for `/manage` and `/editor`.

 Improved Admin Panel Styles:
- Added glassmorphism styles for admin components to enhance UI aesthetics.

 Refined Rate Limiting:
- Adjusted rate limits for admin dashboard requests to allow more generous access.

 Introduced Analytics Reset API:
- Added a new endpoint for resetting analytics data with rate limiting and admin authentication.

🎯 Overall Improvements:
- Strengthened security and user experience for admin functionalities.
- Enhanced visual design for better usability.
- Streamlined analytics management processes.
2025-09-09 19:50:52 +02:00
denshooter
0ae1883cf4 🔧 Update Admin Dashboard and Authentication Flow
 Updated Admin Dashboard URL:
- Changed the Admin Dashboard access path from `/admin` to `/manage` in multiple files for consistency.

 Enhanced Middleware Authentication:
- Updated middleware to protect new admin routes including `/manage` and `/dashboard`.

 Implemented CSRF Protection:
- Added CSRF token generation and validation for login and session validation routes.

 Introduced Rate Limiting:
- Added rate limiting for admin routes and CSRF token requests to enhance security.

 Refactored Admin Page:
- Created a new admin management page with improved authentication handling and user feedback.

🎯 Overall Improvements:
- Strengthened security measures for admin access.
- Improved user experience with clearer navigation and feedback.
- Streamlined authentication processes for better performance.
2025-09-08 09:38:01 +02:00
denshooter
0af21d6fc6 Dev (#51)
* update

* cleanup

* fixing linting and tests errors

* Refactor API Parameter Handling and Update Email Transport

 Updated API Route Parameters:
- Changed parameter type from `{ id: string }` to `Promise<{ id: string }>` in PUT and DELETE methods for better async handling.

 Fixed Email Transport Creation:
- Updated `nodemailer.createTransporter` to `nodemailer.createTransport` for correct transport configuration.

 Refactored AnalyticsDashboard Component:
- Changed export from default to named export for better modularity.

 Enhanced Email Responder Toast:
- Updated toast structure to include additional properties for better user feedback.

🎯 Overall Improvements:
- Improved async handling in API routes.
- Ensured correct usage of nodemailer.
- Enhanced component exports and user notifications.

* 🔧 Update Redis Configuration in Docker Compose

 Changed Redis URL:
- Updated the Redis connection string in docker-compose.prod.yml to use the new shared Redis service.

 Removed Redis Dependency Check:
- Eliminated the health check dependency for the Redis service as it is no longer required.

🎯 Improvements:
- Streamlined Redis configuration for production deployment.
2025-09-08 08:53:07 +02:00