1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/aria2/nginx.conf
2021-09-06 18:38:42 +08:00

28 lines
837 B
Nginx Configuration File

server {
listen 80;
server_name aria2.example.com;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name aria2.example.com;
ssl_certificate /etc/nginx/ssl/example.com.crt;
ssl_certificate_key /etc/nginx/ssl/example.com.key;
location / {
proxy_pass http://172.17.3.25:8080;
}
location /jsonrpc {
proxy_pass http://172.17.3.25:6800;
proxy_http_version 1.1;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
}
}