11 changed files with 59 additions and 5 deletions
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
||||
NODE_ENV = production |
||||
|
||||
# 测试环境配置 |
||||
ENV = 'staging' |
||||
ENV = 'test' |
||||
|
||||
# 接口地址 |
||||
VUE_APP_BASE_API = '/staging' |
||||
VUE_APP_BASE_API = '/prod-api' |
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
FROM nginx |
||||
|
||||
COPY ./dist /data |
||||
|
||||
RUN rm /etc/nginx/conf.d/default.conf |
||||
|
||||
ADD default.conf /etc/nginx/conf.d/ |
||||
|
||||
RUN /bin/bash -c 'echo init ok' |
@ -0,0 +1,30 @@
@@ -0,0 +1,30 @@
|
||||
server { |
||||
# 自定义访问端口 |
||||
listen 3002; |
||||
client_max_body_size 100M; |
||||
|
||||
# 服务名称 |
||||
server_name localhost; |
||||
|
||||
# 代理访问根地址 |
||||
root /data; |
||||
|
||||
#设置转发请求头参数 |
||||
proxy_connect_timeout 15s; |
||||
proxy_send_timeout 15s; |
||||
proxy_read_timeout 15s; |
||||
proxy_set_header Host $http_host; |
||||
proxy_set_header X-Real-IP $remote_addr; |
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
# Nginx 服务器上的 CORS(跨源资源共享)配置 |
||||
add_header 'Access-Control-Allow-Origin' '*'; |
||||
add_header 'Access-Control-Allow-Credentials' 'true'; |
||||
add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,Accept,Origin,User-Agent,Cache-Control,X-Mx-ReqToken,X-Requested-With'; |
||||
add_header 'Access-Control-Allow-Methods' '*'; |
||||
|
||||
# 代理访问 |
||||
location / { |
||||
try_files $uri $uri/ /index.html; |
||||
error_page 405 =200 http://$host$request_uri; |
||||
} |
||||
} |
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
# PROJECT: 康来生物有限公司kicc(智慧冷链)分布式架构平台 |
||||
# VERSION: 1.0.0 |
||||
# Author: 康来生物科技有限公司-王翔 |
||||
|
||||
version: '3' |
||||
services: |
||||
kicc-workflow-design: |
||||
build: |
||||
context: . |
||||
restart: always |
||||
container_name: kicc-workflow-design |
||||
image: kicc-workflow-design |
||||
ports: |
||||
- 3002:3002 |
Loading…
Reference in new issue