mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-23 18:29:23 -05:00
run nginx as part of boot script
This commit is contained in:
@@ -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 \
|
||||
|
||||
2
boot.sh
2
boot.sh
@@ -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
|
||||
@@ -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"';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user