Mann, ich habe das gleiche Problem; Also habe ich es geschafft ... schau mit 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: application
master = true Prozesse = 33 Puffergröße = 32768
socket = /home/app_plataform/app_plataform.sock chmod-socket = 777 vakuum = true
2 - Führen Sie eine ernsthafte Leistungssteigerung für nginx ... user www-data durch.
worker_processes auto; worker_processes 4; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf;
Ereignisse {worker_connections 4092; multi_accept on; }}
http {## UPGRADE CONFIGS
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;
## # Grundeinstellungen ##
sendfile on; tcp_nopush on; tcp_nodelay on; #keepalive_timeout 65; types_hash_max_size 2048; server_tokens off;
server_names_hash_bucket_size 64; # Servername_in_redirect off;
include /etc/nginx/mime.types; default_type application / octet-stream;
## # SSL-Einstellungen ##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # SSLv3 löschen, ref: POODLE ssl_prefer_server_ciphers on;
## # Protokollierungseinstellungen ##
access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log;
## # Gzip-Einstellungen ##
gzip on; gzip_comp_level 2; gzip_min_length 1000; gzip_proxied
abgelaufen no-cache no-store private auth; gzip_types text / einfache anwendung / x-javascript text / xml text / css anwendung / xml; gzip_vary on;
#gzip_proxied any; #gzip_comp_level 6; gzip_buffers 16 8k; gzip_http_version 1.1; #gzip_types text / einfacher text / css anwendung / json anwendung / javascript text / xml anwendung / xml anwendung / xml + rss text / javascript;
## # Virtual Host Configs ##
include /etc/nginx/conf.d/ .conf; include / etc / nginx / sites-enabled / ; }}
3 - dann ... Dienste neu starten oder Server neu starten ...