run nginx as part of boot script

This commit is contained in:
vabene1111
2025-07-28 22:06:55 +02:00
parent 21526fb676
commit a4308f9864
3 changed files with 4 additions and 3 deletions

View File

@@ -43,7 +43,6 @@ COPY . ./
# delete default nginx config and link it to tandoors config
RUN rm -rf /etc/nginx/http.d
RUN ln -s /opt/recipes/nginx/conf.d /etc/nginx/http.d
CMD ["nginx", "-g", "daemon off;"]
# commented for now https://github.com/TandoorRecipes/recipes/issues/3478
#HEALTHCHECK --interval=30s \

View File

@@ -92,3 +92,5 @@ if [ "$ipv6_disable" -eq 0 ]; then
else
exec gunicorn -b ":$TANDOOR_PORT" --workers $GUNICORN_WORKERS --threads $GUNICORN_THREADS --access-logfile - --error-logfile - --log-level $GUNICORN_LOG_LEVEL recipes.wsgi
fi
exec nginx

View File

@@ -6,8 +6,8 @@ server {
client_max_body_size 128M;
# serve media files
location /media/ {
alias /media/;
location /media {
alias /opt/recipes/mediafiles;
add_header Content-Disposition 'attachment; filename="$args"';
}