7 changed files with 283 additions and 0 deletions
@ -0,0 +1,63 @@
|
||||
# 忽略匹配下列规则的Git 提交 V2.1.0 |
||||
### gradle ### |
||||
.gradle |
||||
/build/ |
||||
!gradle/wrapper/gradle-wrapper.jar |
||||
|
||||
### STS ### |
||||
.settings/ |
||||
.apt_generated |
||||
.classpath |
||||
.factorypath |
||||
.project |
||||
.settings |
||||
.springBeans |
||||
bin/ |
||||
|
||||
### IntelliJ IDEA ### |
||||
.idea |
||||
*.iws |
||||
*.iml |
||||
*.ipr |
||||
*.lock |
||||
rebel.xml |
||||
|
||||
### NetBeans ### |
||||
nbproject/private/ |
||||
build/ |
||||
nbbuild/ |
||||
dist/ |
||||
nbdist/ |
||||
.nb-gradle/ |
||||
|
||||
### maven ### |
||||
target/ |
||||
*.war |
||||
*.ear |
||||
*.zip |
||||
*.tar |
||||
*.tar.gz |
||||
|
||||
### logs #### |
||||
/logs/ |
||||
*.log |
||||
|
||||
### temp ignore ### |
||||
*.cache |
||||
*.diff |
||||
*.patch |
||||
*.tmp |
||||
*.java~ |
||||
*.properties~ |
||||
*.xml~ |
||||
|
||||
### system ignore ### |
||||
.DS_Store |
||||
Thumbs.db |
||||
Servers |
||||
.metadata |
||||
upload |
||||
gen_code |
||||
|
||||
### node ### |
||||
node_modules |
@ -0,0 +1,15 @@
|
||||
FROM nginx |
||||
MAINTAINER zhangerbo@galaxydc.com.cn |
||||
ENV RUN_USER nginx |
||||
ENV RUN_GROUP nginx |
||||
ENV DATA_DIR /data/web |
||||
ENV LOG_DIR /data/log/nginx |
||||
RUN mkdir /data/log/nginx -p |
||||
RUN mkdir /opt/nginx-html/dist -p |
||||
RUN mkdir /etc/nginx/logs -p |
||||
RUN chown nginx.nginx -R /data/log/nginx |
||||
ADD dist /opt/nginx-html/dist |
||||
ADD nginx.conf /etc/nginx/nginx.conf |
||||
RUN rm /etc/nginx/conf.d/default.conf |
||||
EXPOSE 80 |
||||
ENTRYPOINT nginx -g "daemon off;" |
@ -0,0 +1,13 @@
|
||||
#!/bin/bash |
||||
|
||||
#测试 |
||||
registry=192.168.40.204:5000 |
||||
version=1.0.0 |
||||
docker login $registry -u admin -p Harbor12345 |
||||
|
||||
#fireeye-html |
||||
cinderella_html_tag=tianfutv/swust-manage:$version |
||||
docker build -t $cinderella_html_tag . |
||||
docker tag $cinderella_html_tag $registry/$cinderella_html_tag |
||||
docker push $registry/$cinderella_html_tag |
||||
echo "$cinderella_html_tag has deployed to $registry success!" |
@ -0,0 +1,75 @@
|
||||
|
||||
#user nobody; |
||||
worker_processes auto; |
||||
|
||||
error_log logs/error.log; |
||||
error_log logs/error.log notice; |
||||
error_log logs/error.log info; |
||||
|
||||
pid logs/nginx.pid; |
||||
|
||||
|
||||
events { |
||||
worker_connections 1024; |
||||
} |
||||
|
||||
http { |
||||
client_max_body_size 100M; |
||||
client_body_buffer_size 12800k; |
||||
include mime.types; |
||||
default_type application/octet-stream; |
||||
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
||||
'$status $body_bytes_sent "$http_referer" ' |
||||
'"$http_user_agent" "$http_x_forwarded_for"'; |
||||
|
||||
access_log logs/access.log main; |
||||
|
||||
sendfile on; |
||||
tcp_nopush on; |
||||
|
||||
keepalive_timeout 65; |
||||
|
||||
map $http_upgrade $connection_upgrade { |
||||
default upgrade; |
||||
'' close; |
||||
} |
||||
|
||||
gzip on; |
||||
include /etc/nginx/conf.d/*.conf; |
||||
|
||||
server { |
||||
listen 8080; |
||||
|
||||
gzip on; |
||||
gzip_buffers 32 4K; |
||||
gzip_comp_level 6; |
||||
gzip_min_length 100; |
||||
gzip_types application/javascript text/css text/xml; |
||||
gzip_disable "MSIE [1-6]\."; #配置禁用gzip条件,支持正则。此处表示ie6及以下不启用gzip(因为ie低版本不支持) |
||||
gzip_vary on; |
||||
gzip_http_version 1.0; |
||||
gzip_proxied any; |
||||
|
||||
root /opt/nginx-html/dist; |
||||
|
||||
location ~* ^/(auth|admin|act|code|gen|daemon|right-service|file|cinderella-label) { |
||||
proxy_pass http://192.168.40.208:32299; #网关 |
||||
proxy_set_header Host $http_host; |
||||
proxy_connect_timeout 15s; |
||||
proxy_send_timeout 15s; |
||||
proxy_read_timeout 15s; |
||||
proxy_set_header X-Real-IP $remote_addr; |
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
} |
||||
location ~* ^/(swust-project) { |
||||
proxy_pass http://192.168.40.206:9000; #网关 |
||||
proxy_set_header Host $http_host; |
||||
proxy_connect_timeout 15s; |
||||
proxy_send_timeout 15s; |
||||
proxy_read_timeout 15s; |
||||
proxy_set_header X-Real-IP $remote_addr; |
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,68 @@
|
||||
{ |
||||
"name": "swust-manage", |
||||
"version": "1.0.0", |
||||
"private": true, |
||||
"scripts": { |
||||
"pre": "cnpm install || yarn --registry https://registry.npm.taobao.org || npm install --registry https://registry.npm.taobao.org ", |
||||
"dev": "vue-cli-service serve", |
||||
"build": "vue-cli-service build", |
||||
"lint": "vue-cli-service lint" |
||||
}, |
||||
"dependencies": { |
||||
"@chenfengyuan/vue-qrcode": "^1.0.1", |
||||
"avue-plugin-formdesign": "^1.0.2", |
||||
"avue-plugin-ueditor": "^0.0.6", |
||||
"axios": "^0.18.0", |
||||
"babel-polyfill": "^6.26.0", |
||||
"bpmn-js": "^3.4.1", |
||||
"bpmn-js-properties-panel": "^0.32.1", |
||||
"camunda-bpmn-moddle": "^3.2.0", |
||||
"classlist-polyfill": "^1.2.0", |
||||
"clipboard": "^2.0.4", |
||||
"crypto-js": "^3.1.9-1", |
||||
"diagram-js": "^3.3.0", |
||||
"echarts": "^4.2.1", |
||||
"element-ui": "^2.12.0", |
||||
"html2canvas": "^1.0.0-rc.7", |
||||
"jquery": "^3.4.1", |
||||
"js-cookie": "^2.2.0", |
||||
"less": "^3.11.1", |
||||
"less-loader": "^6.1.0", |
||||
"moment": "^2.28.0", |
||||
"node-sass": "^4.14.1", |
||||
"nprogress": "^0.2.0", |
||||
"recordrtc": "^5.6.1", |
||||
"script-loader": "^0.7.2", |
||||
"sockjs-client": "^1.0.0", |
||||
"stomp-websocket": "^2.3.4-next", |
||||
"vue": "^2.6.10", |
||||
"vue-aliplayer": "^1.0.0", |
||||
"vue-axios": "^2.1.2", |
||||
"vue-clipboard2": "^0.3.0", |
||||
"vue-cron": "^1.0.9", |
||||
"vue-echarts": "^4.0.1", |
||||
"vue-json-editor": "^1.2.3", |
||||
"vue-json-tree-view": "^2.1.4", |
||||
"vue-router": "^3.0.2", |
||||
"vue-video-player": "^5.0.2", |
||||
"vuex": "^3.0.1" |
||||
}, |
||||
"devDependencies": { |
||||
"@vue/cli-plugin-babel": "~3.8.0", |
||||
"@vue/cli-service": "~3.8.4", |
||||
"chai": "^4.1.2", |
||||
"node-sass": "^4.9.0", |
||||
"sass-loader": "^7.0.1", |
||||
"vue-template-compiler": "^2.6.10" |
||||
}, |
||||
"lint-staged": { |
||||
"*.js": [ |
||||
"vue-cli-service lint", |
||||
"git add" |
||||
], |
||||
"*.vue": [ |
||||
"vue-cli-service lint", |
||||
"git add" |
||||
] |
||||
} |
||||
} |
@ -0,0 +1,44 @@
|
||||
/** |
||||
* 配置参考: |
||||
* https://cli.vuejs.org/zh/config/
|
||||
*/ |
||||
const path = require('path') |
||||
function resolve(dir) { |
||||
return path.join(__dirname, dir) |
||||
} |
||||
//const url = 'http://192.168.23.30:9002';
|
||||
// const url = 'http://192.168.23.64:9002';
|
||||
const url = 'http://139.159.180.147:9002' |
||||
module.exports = { |
||||
lintOnSave: true, |
||||
productionSourceMap: false, |
||||
chainWebpack: config => { |
||||
config.resolve.alias.set('@/', resolve('src')).set('@public', resolve('public')) |
||||
// 忽略的打包文件
|
||||
config.externals({ |
||||
'axios': 'axios' |
||||
}) |
||||
const entry = config.entry('app'); |
||||
entry |
||||
.add('babel-polyfill') |
||||
.end(); |
||||
entry |
||||
.add('classlist-polyfill') |
||||
.end() |
||||
}, |
||||
// 配置转发代理
|
||||
devServer: { |
||||
disableHostCheck: true, |
||||
port: 8080, |
||||
proxy: { |
||||
'/api': { |
||||
target: url, |
||||
ws: false, // 需要websocket 开启
|
||||
changeOrigin: true, // 是否跨域
|
||||
pathRewrite: { |
||||
'^/api': '/', // 接口重写
|
||||
}, |
||||
}, |
||||
}, |
||||
} |
||||
} |
Loading…
Reference in new issue