Skip to content

Commit

Permalink
[add-description]: nginx congif
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengdechang2 committed Nov 29, 2022
1 parent a257584 commit bdab5cb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
28 changes: 24 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
* @Description:
* @Author: Devin
* @Date: 2022-11-21 21:21:14
-->
<div align="center">
<h1>OHIF Medical Imaging Viewer</h1>
</div>
Expand All @@ -13,7 +18,8 @@ yarn config set workspaces-experimental true
# 安装依赖
yarn install


//react-transition-group依赖出错问题
cnpm install [email protected] [email protected] --save
#打包命令
yarn build

Expand All @@ -24,11 +30,25 @@ yarn build

<hr />

## 2、nginx 配置
## 2、OHIF 前端服务配置

```js
server {
listen 8042;#①配置访问端口
server_name localhost;#②配置访问方式

location / {
root /home/dechang/dist;
index index.html index.htm;
}
}
```

## 3、nginx Orthanc 后端服务配置

```js
server {
listen 80 default_server;
listen 2099 default_server;
location / {
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always;
Expand All @@ -50,7 +70,7 @@ server {

```

## 3、文件目录
## 4、文件目录

```bash
.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dependencies": {
"@babel/runtime": "^7.5.5",
"core-js": "^3.2.1",
"pdfjs-dist": "^2.3.200",
"pdfjs-dist": "^2.2.228",
"react-transition-group": "^4.1.1",
"worker-loader": "^2.0.0",
"yarn": "^1.22.19"
Expand Down

0 comments on commit bdab5cb

Please sign in to comment.