Remove .env bake-in — use Coolify env vars at runtime

This commit is contained in:
2026-06-04 12:45:06 +01:00
parent bc07e81514
commit dc414f1b84
3 changed files with 2 additions and 5 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ __pycache__
*.pyc *.pyc
*.md *.md
*.txt *.txt
.env.example .env
.env.*
!robots.txt !robots.txt
*.xml *.xml
!sitemap.xml !sitemap.xml
-1
View File
@@ -15,7 +15,6 @@ COPY robots.txt /var/www/html/robots.txt
COPY sitemap.xml /var/www/html/sitemap.xml COPY sitemap.xml /var/www/html/sitemap.xml
COPY 404.html /var/www/html/404.html COPY 404.html /var/www/html/404.html
COPY 500.html /var/www/html/500.html COPY 500.html /var/www/html/500.html
COPY .env /var/www/html/.env
RUN chown -R www-data:www-data /var/www/html RUN chown -R www-data:www-data /var/www/html
-3
View File
@@ -1,8 +1,5 @@
#!/bin/sh #!/bin/sh
set -e set -e
if [ -f /var/www/html/.env ]; then
set -a; . /var/www/html/.env; set +a
fi
if [ -z "$ALTCHA_HMAC_KEY" ]; then if [ -z "$ALTCHA_HMAC_KEY" ]; then
export ALTCHA_HMAC_KEY="$(openssl rand -hex 32)" export ALTCHA_HMAC_KEY="$(openssl rand -hex 32)"
echo "Generated ALTCHA_HMAC_KEY" >&2 echo "Generated ALTCHA_HMAC_KEY" >&2