|
@@ -0,0 +1,68 @@
|
|
|
+server {
|
|
|
+ listen 9999;
|
|
|
+ access_log /data/logs/nginx/dcm/access.log;
|
|
|
+ error_log /data/logs/nginx/dcm/error.log;
|
|
|
+ root html;
|
|
|
+ index index.html index.htm;
|
|
|
+ #ssl_certificate /data/sslkey/dcm/dcm.pem;
|
|
|
+ #ssl_certificate_key /data/sslkey/dcm/dcm.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;
|
|
|
+ #add_header 'Access-Control-Allow-Origin' 'http://127.0.0.1:3456';
|
|
|
+ location ~/group[0-9]/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;
|
|
|
+ }
|
|
|
+
|
|
|
+ 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;
|
|
|
+ #}
|
|
|
+}
|
|
|
+
|
|
|
+server {
|
|
|
+ listen 443 ssl http2;
|
|
|
+ server_name dcm.pacsonline.cn;
|
|
|
+
|
|
|
+ ssl on;
|
|
|
+ root html;
|
|
|
+ index index.html index.htm;
|
|
|
+ ssl_certificate /data/sslkey/dcm/dcm.pem;
|
|
|
+ ssl_certificate_key /data/sslkey/dcm/dcm.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;
|
|
|
+
|
|
|
+ location ~/group[0-9]/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;
|
|
|
+ }
|
|
|
+
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+}
|