Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1.  
  2. server {
  3. # не взирая на то, какой порт торчит наружу, nginx внутрях будет по 80 работать
  4. listen 443 ssl;
  5. server_name HOSTNAME;
  6. access_log /var/log/nginx/sdld.log;
  7.  
  8. ssl on;
  9. ssl_certificate /opt/cert/private.crt;
  10. ssl_certificate_key /opt/cert/private.key;
  11.  
  12. proxy_set_header X-Real-IP $remote_addr;
  13. proxy_set_header Host $http_host;
  14. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  15.  
  16. proxy_buffers 8 32k;
  17. proxy_buffer_size 64k;
  18.  
  19. location /teleradiology {
  20. proxy_pass http://tele$request_uri;
  21. resolver 127.0.0.11;
  22. proxy_read_timeout 1200;
  23. proxy_connect_timeout 1200;
  24. }
  25.  
  26. location /cami {
  27. proxy_pass http://cami$request_uri;
  28. resolver 127.0.0.11;
  29. proxy_read_timeout 1200;
  30. proxy_connect_timeout 1200;
  31. }
  32.  
  33. location /camiapi {
  34. proxy_pass http://cami$request_uri;
  35. resolver 127.0.0.11;
  36. proxy_read_timeout 1200;
  37. proxy_connect_timeout 1200;
  38. }
  39.  
  40. location /oauth {
  41. proxy_pass http://oauth$request_uri;
  42. resolver 127.0.0.11;
  43. proxy_read_timeout 1200;
  44. proxy_connect_timeout 1200;
  45. }
  46.  
  47.  
  48. location /configservice {
  49. proxy_pass http://configservice$request_uri;
  50. resolver 127.0.0.11;
  51. proxy_buffers 8 32k;
  52. proxy_buffer_size 64k;
  53. }
  54.  
  55. # it is need to refactor
  56. location /birt {
  57. proxy_pass http://127.0.0.1:8002$request_uri;
  58. proxy_read_timeout 1200;
  59. proxy_connect_timeout 1200;
  60. }
  61.  
  62. # it is need to refactor
  63. location /weasis-pacs-connector {
  64. proxy_pass http://192.168.3.52:8080/weasis-pacs-connector;
  65. proxy_set_header X-Real-IP $remote_addr;
  66. proxy_set_header Host $http_host;
  67. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  68. }
  69.  
  70. # it is need to refactor
  71. location /oviyam {
  72. proxy_pass http://192.168.3.52:8084/oviyam;
  73. proxy_set_header X-Real-IP $remote_addr;
  74. proxy_set_header Host $http_host;
  75. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  76. }
  77. # it is need to refactor
  78. location /wado {
  79. proxy_pass http://192.168.3.52:8081/wado;
  80. proxy_set_header X-Real-IP $remote_addr;
  81. proxy_set_header Host $http_host;
  82. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  83. }
  84.  
  85. location =/iviewer/ {
  86. root /opt/sdld/;
  87. }
  88.  
  89. location / {
  90. rewrite ^.* http://HOSTNAME/cami permanent;
  91. }
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement