feat: nginx worker events config in Dockerfile
Some checks failed
Deploy on push / deploy (push) Failing after 9s

This commit is contained in:
Stepan Vladovskiy 2024-04-07 13:45:59 -03:00
parent 0da9c87f5a
commit 7c19291ba9
2 changed files with 3 additions and 4 deletions

View File

@ -15,6 +15,9 @@ COPY pyproject.toml /app/
RUN pip install poetry && \ RUN pip install poetry && \
poetry config virtualenvs.create false && \ poetry config virtualenvs.create false && \
poetry install --no-root --only main poetry install --no-root --only main
# Modify the nginx.conf file to add the events block
RUN echo "events { worker_connections 1024; }" >> /etc/nginx/nginx.conf
# Copy the rest of the application # Copy the rest of the application
COPY . /app COPY . /app

View File

@ -10,10 +10,6 @@ map $http_origin $allow_origin {
default ""; default "";
} }
events {
worker_connections 1024;
}
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=my_cache:10m max_size=1g proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=my_cache:10m max_size=1g
inactive=60m use_temp_path=off; inactive=60m use_temp_path=off;