From a10134935dc05a4b5403af8c3cf758bc6fb09da6 Mon Sep 17 00:00:00 2001 From: nagadomi Date: Sun, 17 May 2015 06:28:02 +0000 Subject: [PATCH] add nginx conf --- appendix/waifu2x.nginx.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 appendix/waifu2x.nginx.conf diff --git a/appendix/waifu2x.nginx.conf b/appendix/waifu2x.nginx.conf new file mode 100644 index 0000000..a71d26d --- /dev/null +++ b/appendix/waifu2x.nginx.conf @@ -0,0 +1,19 @@ +upstream waifu2x { + server localhost:8812; +} + +server { + server_name waifu2x.udp.jp; + + access_log /var/log/nginx/waifu2x.udp.jp.access.log; + + root /home/ubuntu/waifu2x/assets; + + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + + location / { + proxy_pass http://waifu2x; + } +}