kaka-ruto / carpitan

Power to the People
MIT License
79 stars 32 forks source link

Feature: Add SSL configuration and Docker Compose setup #2

Closed muokicaleb closed 2 weeks ago

muokicaleb commented 2 weeks ago

This commit introduces the assume_ssl and force_ssl configurations to enable SSL termination on a reverse proxy or ingress in situations where Kamal deploy isn't used. The assume_ssl setting defaults to true and can be overridden by the ASSUME_SSL environment variable, while force_ssl can be enabled via the FORCE_SSL environment variable.

Additionally, this commit includes a complete Docker Compose setup for the application. It defines services for web, db (PostgreSQL), and redis, and configures environment variables and volumes for persistent storage. This setup ensures the application can be easily deployed and run locally or in a containerized environment.