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
|
@ -16,6 +16,9 @@ RUN pip install poetry && \
|
|||
poetry config virtualenvs.create false && \
|
||||
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 . /app
|
||||
|
||||
|
|
|
@ -10,10 +10,6 @@ map $http_origin $allow_origin {
|
|||
default "";
|
||||
}
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=my_cache:10m max_size=1g
|
||||
inactive=60m use_temp_path=off;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user