For docker-compose deployments of Rasa X, you can override the default nginx configuration by adding - ./nginx.conf:/opt/bitnami/nginx/conf/nginx.conf to the docker-compose.yml:
worker_processes auto;
worker_rlimit_nofile 10000;
error_log /dev/stdout info;
pid "/opt/bitnami/nginx/tmp/nginx.pid";
events {
worker_connections 4096;
}
http {
server {
listen 8080 default_server;
server_name _;
return 301 https://$host$request_uri;
}
include /opt/bitnami/nginx/conf/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /dev/stdout;
client_body_temp_path "/opt/bitnami/nginx/tmp/client_body" 1 2;
proxy_temp_path "/opt/bitnami/nginx/tmp/proxy" 1 2;
fastcgi_temp_path "/opt/bitnami/nginx/tmp/fastcgi" 1 2;
scgi_temp_path "/opt/bitnami/nginx/tmp/scgi" 1 2;
uwsgi_temp_path "/opt/bitnami/nginx/tmp/uwsgi" 1 2;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
gzip on;
gzip_vary on;
gzip_min_length 1400;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/javascript application/json application/x-javascript application/xml;
include /opt/bitnami/nginx/conf/conf.d/*.nginx;
# allow the server to close connection on non responding client, this will free up memory
reset_timedout_connection on;
# request timed out -- default 60
client_body_timeout 10;
# if client stop responding, free up memory -- default 60
send_timeout 2;
# server will close connection after this time -- default 75
proxy_read_timeout 3600;
# number of requests client can make over keep-alive -- for testing environment
keepalive_requests 100000;
# whether the connection with a proxied server should be closed
# when a client closes the connection without waiting for a response
# default is off
proxy_ignore_client_abort on;
}