syazwan0913 commented on issue #8160:
URL: https://github.com/apache/superset/issues/8160#issuecomment-831641438


   Here is my working nginx config
   ```
   worker_processes auto;
   
   error_log /var/log/nginx/error.log error;
   
   events {
       worker_connections 1024;
   }
   
   http {
       include /etc/nginx/mime.types;
       default_type application/octet-stream;
   
       log_format main '$remote_addr - $remote_user [$time_local] $status '
       '"$request" $body_bytes_sent "$http_referer" '
       '"$http_user_agent"';
   
       access_log /var/log/nginx/access.log main;
   
       client_header_timeout 3m;
       client_body_timeout 3m;
       send_timeout 3m;
   
       client_header_buffer_size 1k;
       large_client_header_buffers 4 4k;
   
       gzip on;
       gzip_min_length 1100;
       gzip_buffers 4 8k;
       gzip_types text/plain;
   
       output_buffers 1 32k;
       postpone_output 1460;
   
       sendfile on;
       tcp_nopush on;
   
       tcp_nodelay on;
   
       client_max_body_size 200M;
   
       server_tokens off;
       add_header X-Frame-Options SAMEORIGIN;
       add_header X-Content-Type-Options nosniff;
       add_header X-XSS-Protection "1; mode=block";
   
       upstream backend {
           server IP;
       }
   
       server {
           listen 80;
           server_name _;
           return 301 https://$server_name$request_uri;
       }
   
       server {
           listen 443 ssl;
           server_name analytics.local;
           ssl_certificate /etc/nginx/ssl/ssl.crt;
           ssl_certificate_key /etc/nginx/ssl/ssl.key;
   
           underscores_in_headers on;
   
           location / {
               proxy_http_version 1.1;
               proxy_set_header Connection "";
               proxy_read_timeout 300s;
               proxy_connect_timeout 300s;
               proxy_send_timeout 300s;
               proxy_pass http://backend;
               proxy_max_temp_file_size 0;
           }
       }
   }
   
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to