From 5de2f508baf702151f003b5f9421bd9ae8f1007d Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 16 Oct 2019 19:50:02 +0800 Subject: [PATCH] update nexus3 --- nexus3/nginx.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nexus3/nginx.conf diff --git a/nexus3/nginx.conf b/nexus3/nginx.conf new file mode 100644 index 0000000..afe7aa3 --- /dev/null +++ b/nexus3/nginx.conf @@ -0,0 +1,22 @@ +server { + listen 80; + server_name nexus3.easypi.pro; + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl; + server_name nexus3.easypi.pro; + ssl_certificate ssl/easypi.crt; + ssl_certificate_key ssl/easypi.key; + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_ciphers HIGH:!aNULL:!MD5; + client_max_body_size 1G; + location / { + proxy_pass http://127.0.0.1:8081; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto "https"; + } +}