|
@@ -0,0 +1,98 @@
|
|
|
+server {
|
|
|
+ listen 9999 ssl;
|
|
|
+ ssl_certificate /data/ssl/tls.crt;
|
|
|
+ ssl_certificate_key /data/ssl/tls.key;
|
|
|
+ ssl_session_timeout 5m;
|
|
|
+ ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
|
|
|
+ ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
+ ssl_prefer_server_ciphers on;
|
|
|
+ access_log /data/logs/nginx/dcm/access.log;
|
|
|
+ error_log /data/logs/nginx/dcm/error.log;
|
|
|
+ root html;
|
|
|
+ index index.html index.htm;
|
|
|
+ location / {
|
|
|
+ root /data/www/byc;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /oss/ {
|
|
|
+ # add_header Access-Control-Allow-Origin '*';
|
|
|
+ # add_header Access-Control-Allow-Headers 'X-Requested-With,Content-Type';
|
|
|
+ # add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS';
|
|
|
+ proxy_pass http://static.dcm.pacsonline.cn/;# 阿里云 oss dcm下载路径
|
|
|
+ # proxy_pass http://122.14.43.168/;# 阿里云 oss dcm下载路径
|
|
|
+ #proxy_set_header Host $host;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ client_max_body_size 2000m;
|
|
|
+ proxy_http_version 1.1;
|
|
|
+ proxy_set_header Connection "";
|
|
|
+ client_body_buffer_size 128k;
|
|
|
+ proxy_connect_timeout 90;
|
|
|
+ proxy_send_timeout 90;
|
|
|
+ proxy_read_timeout 90;
|
|
|
+ proxy_buffer_size 4k;
|
|
|
+ proxy_buffers 4 32k;
|
|
|
+ proxy_busy_buffers_size 64k;
|
|
|
+ proxy_temp_file_write_size 64k;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /lcoss/ {
|
|
|
+ # add_header Access-Control-Allow-Origin '*';
|
|
|
+ # add_header Access-Control-Allow-Headers 'X-Requested-With,Content-Type';
|
|
|
+ # add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS';
|
|
|
+ proxy_pass https://zskkdcm.infile.inspurcloud.cn/;#浪 潮 ufile dcm下载路径
|
|
|
+ # proxy_pass http://117.50.71.166:9999/;#浪 潮 ufile dcm下载路径
|
|
|
+ #proxy_set_header Host $host;
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+ client_max_body_size 2000m;
|
|
|
+ proxy_http_version 1.1;
|
|
|
+ proxy_set_header Connection "";
|
|
|
+ client_body_buffer_size 128k;
|
|
|
+ proxy_connect_timeout 90;
|
|
|
+ proxy_send_timeout 90;
|
|
|
+ proxy_read_timeout 90;
|
|
|
+ proxy_buffer_size 4k;
|
|
|
+ proxy_buffers 4 32k;
|
|
|
+ proxy_busy_buffers_size 64k;
|
|
|
+ proxy_temp_file_write_size 64k;
|
|
|
+ }
|
|
|
+ location ~/group1/M00 {
|
|
|
+ add_header 'Access-Control-Allow-Origin' '*';
|
|
|
+ #add_header 'Access-Control-Allow-Origin' 'http://demo.pacsonline.cn';
|
|
|
+ #add_header 'Access-Control-Allow-Origin' 'http://wechat.pacsonline.cn';
|
|
|
+ #add_header 'Access-Control-Allow-Origin' 'http://local.pacsonline.cn';
|
|
|
+ ngx_fastdfs_module;
|
|
|
+ root /z01/fastdfs_storage_data/data;
|
|
|
+ }
|
|
|
+location ~/group1/M01 {
|
|
|
+ add_header 'Access-Control-Allow-Origin' '*';
|
|
|
+ #add_header 'Access-Control-Allow-Origin' 'http://demo.pacsonline.cn';
|
|
|
+ #add_header 'Access-Control-Allow-Origin' 'http://wechat.pacsonline.cn';
|
|
|
+ #add_header 'Access-Control-Allow-Origin' 'http://local.pacsonline.cn';
|
|
|
+ ngx_fastdfs_module;
|
|
|
+ root /z02/fastdfs_storage_data/data;
|
|
|
+ }
|
|
|
+location ~/group1/M02 {
|
|
|
+ add_header 'Access-Control-Allow-Origin' '*';
|
|
|
+ #add_header 'Access-Control-Allow-Origin' 'http://demo.pacsonline.cn';
|
|
|
+ #add_header 'Access-Control-Allow-Origin' 'http://wechat.pacsonline.cn';
|
|
|
+ #add_header 'Access-Control-Allow-Origin' 'http://local.pacsonline.cn';
|
|
|
+ ngx_fastdfs_module;
|
|
|
+ root /z03/fastdfs_storage_data/data;
|
|
|
+ }
|
|
|
+
|
|
|
+ location = /favicon.ico {
|
|
|
+ access_log off;
|
|
|
+ log_not_found off;
|
|
|
+ }
|
|
|
+
|
|
|
+ error_page 500 502 503 504 /50x.html;
|
|
|
+ location = /50x.html {
|
|
|
+ root /usr/share/nginx/html;
|
|
|
+ }
|
|
|
+
|
|
|
+ #if ($scheme ~ http) {
|
|
|
+ # return https://$server_name$request_uri;
|
|
|
+ #}
|
|
|
+}
|