1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| $ cat cpen.top.conf ...
server { listen 8004 ssl;
server_name cpen.top;
location / { proxy_pass http://127.0.0.1:5244; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; proxy_redirect off; client_max_body_size 20000m; proxy_connect_timeout 120; proxy_send_timeout 120; proxy_read_timeout 120; proxy_http_version 1.1; proxy_set_header Connection ""; }
ssl_certificate /usr/local/nginx/ssl/cpen.top.pem; ssl_certificate_key /usr/local/nginx/ssl/cpen.top.key;
access_log /data/service_logs/nginx/cpen.top_access.log misc; error_log /data/service_logs/nginx/cpen.top_error.log; }
|