Create nginx.config.example

This commit is contained in:
tianyu 2015-07-23 09:56:55 +08:00
parent b17ee24212
commit 0af79e20eb
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# aria2 jsonrpc
location /jsonrpc {
auth_basic "Authentication required";
auth_basic_user_file /etc/nginx/.dlpasswd;
proxy_pass http://127.0.0.1:6800;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}