3 changed files with 57 additions and 26 deletions
@ -0,0 +1,8 @@ |
|||||
|
FROM registry.cn-shanghai.aliyuncs.com/lj-go/nginx |
||||
|
LABEL maintainer "wenwu" |
||||
|
|
||||
|
WORKDIR /react |
||||
|
COPY . /react |
||||
|
COPY dist /usr/share/nginx/html/ |
||||
|
COPY nginxDev.conf /etc/nginx/conf.d/default.conf |
||||
|
EXPOSE 83 |
@ -0,0 +1,28 @@ |
|||||
|
server { |
||||
|
listen 83; |
||||
|
root /usr/share/nginx/html/; |
||||
|
include /etc/nginx/default.d/*.conf; |
||||
|
|
||||
|
|
||||
|
location / { |
||||
|
index index.html index.htm; |
||||
|
error_page 405 =200 /index.html; |
||||
|
try_files $uri $uri/ /index.html; |
||||
|
} |
||||
|
|
||||
|
location /api/ { |
||||
|
proxy_pass http://121.36.90.209:30010/; |
||||
|
} |
||||
|
|
||||
|
location /minio/ { |
||||
|
proxy_pass https://ax-api.sumweal.com/minio/; |
||||
|
} |
||||
|
|
||||
|
error_page 404 /404.html; |
||||
|
location = /40x.html { |
||||
|
} |
||||
|
|
||||
|
error_page 500 502 503 504 /50x.html; |
||||
|
location = /50x.html { |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue