add nginx conf
This commit is contained in:
parent
20d0f70d2a
commit
a10134935d
1 changed files with 19 additions and 0 deletions
19
appendix/waifu2x.nginx.conf
Normal file
19
appendix/waifu2x.nginx.conf
Normal file
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue