man im havin stesso problema; quindi l'ho fatto ... guarda usando UWSGI + DJANGO + NGINX + REACT +
DJANGO_SETTINGS_MODULE = app_plataform.settings env = DJANGO_SETTINGS_MODULE settings.configure ()
chdir = / home / app_plataform home = / root / app_plataform module = prometheus_plataform.wsgi: applicazione
master = processi veri = 33 buffer-size = 32768
socket = /home/app_plataform/app_plataform.sock chmod-socket = 777 vacuum = true
2 - eseguire un serio aggiornamento delle prestazioni su nginx ... user www-data;
worker_processes auto; worker_processes 4; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf;
eventi {worker_connections 4092; multi_accept on; }
http {## CONFIGURAZIONI DI AGGIORNAMENTO
client_body_buffer_size 16K; client_header_buffer_size 16k; client_max_body_size 32m; #large_client_header_buffers 2 1k;
client_body_timeout 12; client_header_timeout 12; keepalive_timeout 15; send_timeout 10; access_log off;
## # Impostazioni di base ##
file di trasmissione attivo; tcp_nopush on; tcp_nodelay on; #keepalive_timeout 65; types_hash_max_size 2048; server_tokens off;
server_names_hash_bucket_size 64; # server_name_in_redirect disattivato;
include /etc/nginx/mime.types; default_type application / octet-stream;
## # Impostazioni SSL ##
protocolli ssl TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE ssl_prefer_server_ciphers su;
## # Impostazioni di registrazione ##
access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log;
## # Impostazioni Gzip ##
gzip on; gzip_comp_level 2; gzip_min_length 1000; gzip_proxied
autenticazione privata no-store scaduta no-cache; gzip_types text / applicazione semplice / x-javascript text / xml text / css application / xml; gzip_vary su;
#gzip_proxied any; #gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; #gzip_types text / plain text / css application / json application / javascript text / xml application / xml application / xml + rss text / javascript;
## # Virtual Host Configs ##
include /etc/nginx/conf.d/ .conf; include / etc / nginx / sites-enabled / ; }
3 - quindi ... riavvia i servizi o riavvia il server ...