mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2025-12-30 07:40:51 -06:00
Add comprehensive HTTPS support with two deployment options: - mkcert for local development with trusted certificates - Automatic SSL with Let's Encrypt for production HTTPS Implementation: - Add docker-compose.https-mkcert.yml for local HTTPS development - Add docker-compose.https-auto.yml for automatic SSL certificates - Create Dockerfile.mkcert for certificate generation - Add setup scripts (setup-https-mkcert.sh/bat) - Add startup scripts (start-https.sh/bat) - Add certificate generation script (generate-mkcert-certs.sh) CSRF and IP Access Fixes: - Fix CSRF token validation for IP-based access - Add CSRF troubleshooting documentation - Update configuration to handle various access patterns Documentation: - Add HTTPS_MKCERT_GUIDE.md with setup instructions - Add README_HTTPS.md with general HTTPS documentation - Add README_HTTPS_AUTO.md for automatic SSL setup - Add AUTOMATIC_HTTPS_SUMMARY.md - Add CSRF_IP_ACCESS_FIX.md and CSRF_IP_FIX_SUMMARY.md - Add docs/CSRF_IP_ACCESS_GUIDE.md - Update main README.md with HTTPS information Configuration: - Update .gitignore for SSL certificates and nginx configs - Update env.example with new HTTPS-related variables - Update docker-compose.yml with SSL configuration options This enables secure HTTPS access in both development and production environments while maintaining compatibility with existing deployments.
18 lines
456 B
Docker
18 lines
456 B
Docker
FROM alpine:latest
|
|
|
|
# Install mkcert
|
|
RUN apk add --no-cache \
|
|
ca-certificates \
|
|
curl \
|
|
nss-tools \
|
|
&& curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" \
|
|
&& chmod +x mkcert-v*-linux-amd64 \
|
|
&& mv mkcert-v*-linux-amd64 /usr/local/bin/mkcert
|
|
|
|
# Create certificate generation script
|
|
COPY docker/generate-mkcert-certs.sh /generate-mkcert-certs.sh
|
|
RUN chmod +x /generate-mkcert-certs.sh
|
|
|
|
CMD ["/generate-mkcert-certs.sh"]
|
|
|