From 09c07941752071415695c640faf151fc3075f6ad Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 17 Oct 2019 22:35:17 +0800 Subject: [PATCH] update superset --- superset/nginx.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 superset/nginx.conf diff --git a/superset/nginx.conf b/superset/nginx.conf new file mode 100644 index 0000000..e63cba2 --- /dev/null +++ b/superset/nginx.conf @@ -0,0 +1,22 @@ +server { + listen 80; + server_name superset.easypi.pro; + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + server_name superset.easypi.pro; + ssl_certificate ssl/easypi.pro.crt; + ssl_certificate_key ssl/easypi.pro.key; + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_ciphers HIGH:!aNULL:!MD5; + location / { + proxy_pass http://127.0.0.1:8088; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } +}