From 044891de59d459c67b6e832073428b806cc01803 Mon Sep 17 00:00:00 2001 From: Henry He Date: Fri, 6 Mar 2020 15:03:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AF=B9Archive=20of=20our?= =?UTF-8?q?=20own=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/nginx.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 97a3a1a..957e2f1 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -303,6 +303,25 @@ http { proxy_buffering off; } } + server { + listen 443 ssl; + server_name *.archiveofourown.org; + server_name archiveofourown.org; + + ssl on; + ssl_certificate ca/pixiv.net.crt; + ssl_certificate_key ca/pixiv.net.key; + + location / { + proxy_pass https://104.153.64.122/; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Real_IP $remote_addr; + proxy_set_header User-Agent $http_user_agent; + proxy_set_header Accept-Encoding ''; + proxy_buffering off; + } + } server { listen 443 ssl;