feat: nginx worker events config in Dockerfile
Some checks failed
Deploy on push / deploy (push) Failing after 9s
Some checks failed
Deploy on push / deploy (push) Failing after 9s
This commit is contained in:
parent
0da9c87f5a
commit
7c19291ba9
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user