Fix contact form POST routing and bake env into build
- nginx: route POST /contact/ to contact.php, GET to router.php - Dockerfile: COPY .env into image - entrypoint.sh: source .env on container start - .dockerignore: allow .env to be included in build context
This commit is contained in:
@@ -15,6 +15,7 @@ COPY robots.txt /var/www/html/robots.txt
|
||||
COPY sitemap.xml /var/www/html/sitemap.xml
|
||||
COPY 404.html /var/www/html/404.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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user