添加docker文件和集宁环保项目配置文件
This commit is contained in:
parent
1312d0a191
commit
0916425aa9
4
Dockerfile-jnhb
Normal file
4
Dockerfile-jnhb
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM openjdk:8u292-jre-buster
|
||||||
|
ARG JAR_FILE=/target/*.jar
|
||||||
|
COPY ${JAR_FILE} system-city.jar
|
||||||
|
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=jnhb","/system-city.jar"]
|
148
src/main/resources/application-jnhb.yml
Normal file
148
src/main/resources/application-jnhb.yml
Normal file
@ -0,0 +1,148 @@
|
|||||||
|
server:
|
||||||
|
port: 7002
|
||||||
|
url: http://106.12.218.237:8001/servicecity
|
||||||
|
title: 生态环保网格化监督平台
|
||||||
|
servlet:
|
||||||
|
context-path: /servicecity
|
||||||
|
tomcat:
|
||||||
|
uri-encoding: UTF-8
|
||||||
|
max-threads: 500
|
||||||
|
max-connections: 10000
|
||||||
|
|
||||||
|
spring:
|
||||||
|
thymeleaf:
|
||||||
|
prefix: classpath:/templates/
|
||||||
|
suffix: .html
|
||||||
|
mode: HTML5
|
||||||
|
encoding: UTF-8
|
||||||
|
cache: false
|
||||||
|
main:
|
||||||
|
allow-bean-definition-overriding: true
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 1GB
|
||||||
|
max-request-size: 1GB
|
||||||
|
datasource:
|
||||||
|
druid:
|
||||||
|
url: jdbc:mysql://localhost:8668/db_cloud_v2?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
|
||||||
|
db-type: mysql
|
||||||
|
driver-class-name: com.mysql.jdbc.Driver
|
||||||
|
username: root
|
||||||
|
password: TSkj@0471.123
|
||||||
|
initial-size: 2
|
||||||
|
min-idle: 2
|
||||||
|
max-active: 10
|
||||||
|
max-wait: 60000
|
||||||
|
time-between-eviction-runs-millis: 60000
|
||||||
|
min-evictable-idle-time-millis: 300000
|
||||||
|
validation-query: SELECT 1 FROM DUAL
|
||||||
|
test-while-idle: true
|
||||||
|
test-on-borrow: false
|
||||||
|
test-on-return: false
|
||||||
|
pool-prepared-statements: true
|
||||||
|
max-pool-prepared-statement-per-connection-size: 10
|
||||||
|
filter:
|
||||||
|
commons-log:
|
||||||
|
connection-logger-name: stat,wall,log4j
|
||||||
|
stat:
|
||||||
|
log-slow-sql: true
|
||||||
|
slow-sql-millis: 2000
|
||||||
|
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
||||||
|
use-global-data-source-stat: true
|
||||||
|
|
||||||
|
cache:
|
||||||
|
type: ehcache
|
||||||
|
ehcache:
|
||||||
|
config: classpath:ehcache.xml
|
||||||
|
|
||||||
|
# 数据库
|
||||||
|
mybatis:
|
||||||
|
config-location: classpath:mybatis/mybatis-config.xml
|
||||||
|
mapper-locations: classpath*:mybatis/mapper/**/*.xml
|
||||||
|
|
||||||
|
# 文档
|
||||||
|
swagger:
|
||||||
|
title: 接口文档
|
||||||
|
description: 生态环保网格化监督平台接口文档
|
||||||
|
service-url: http://106.12.218.237:8001/servicecity
|
||||||
|
version: 1.0
|
||||||
|
swagger-base-package: com.cm
|
||||||
|
|
||||||
|
# 文件
|
||||||
|
file:
|
||||||
|
uploadPath: /projects/uploadFiles/
|
||||||
|
imageTypes: png,jpg,jpeg,gif,blob
|
||||||
|
videoTypes: mp4,rmvb
|
||||||
|
audioTypes: mp3,wmv,wav
|
||||||
|
fileTypes: doc,docx,xls,xlsx,ppt,pptx,txt,zip,rar,apk
|
||||||
|
|
||||||
|
# 安全
|
||||||
|
security:
|
||||||
|
oauth2:
|
||||||
|
oauth-server: http://106.12.218.237:8001/usercenter
|
||||||
|
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
|
||||||
|
client:
|
||||||
|
client-id: c024a89b35b04d4d8b5b4ea4d66a8acb
|
||||||
|
client-secret: MlMzaC9sYkxKMDZtQzlRLzJwVGVMbnhaVmhTZEJQR1BiT0c4SDgrRjd5VW1ac2wwZTJHWk5NbXh3L3h3U2c4Rg==
|
||||||
|
user-authorization-uri: ${security.oauth2.oauth-server}/oauth_client/authorize
|
||||||
|
access-token-uri: ${security.oauth2.oauth-server}/oauth_client/token
|
||||||
|
grant-type: authorization_code
|
||||||
|
resource:
|
||||||
|
jwt:
|
||||||
|
key-uri: ${security.oauth2.oauth-server}/oauth_client/token_key
|
||||||
|
token-info-uri: ${security.oauth2.oauth-server}/oauth_client/check_token
|
||||||
|
user-info-uri: ${security.oauth2.oauth-server}/user
|
||||||
|
authorization:
|
||||||
|
check-token-access: ${security.oauth2.oauth-server}/oauth_client/token_key
|
||||||
|
|
||||||
|
api-path:
|
||||||
|
user-center: ${security.oauth2.oauth-server}
|
||||||
|
|
||||||
|
# 访问控制
|
||||||
|
access-control:
|
||||||
|
pass-paths:
|
||||||
|
- /index
|
||||||
|
- /index.html
|
||||||
|
- /logout.html
|
||||||
|
- /default.html
|
||||||
|
- /app/**
|
||||||
|
- /assets/**
|
||||||
|
save-paths:
|
||||||
|
- /save*/**
|
||||||
|
- /add*/**
|
||||||
|
delete-paths:
|
||||||
|
- /delete*/**
|
||||||
|
- /remove*/**
|
||||||
|
update-paths:
|
||||||
|
- /update*/**
|
||||||
|
- /edit*/**
|
||||||
|
query-paths:
|
||||||
|
- /get*/**
|
||||||
|
- /query*/**
|
||||||
|
- /find*/**
|
||||||
|
- /list*/**
|
||||||
|
- /count*/**
|
||||||
|
- /map*/**
|
||||||
|
- /select*/**
|
||||||
|
|
||||||
|
# 日志
|
||||||
|
logging:
|
||||||
|
file: /projects/logs/servicecity/logs.log
|
||||||
|
level:
|
||||||
|
root: error
|
||||||
|
com.cm: debug
|
||||||
|
|
||||||
|
socket:
|
||||||
|
central-control:
|
||||||
|
active: false
|
||||||
|
client:
|
||||||
|
client-id: 09991939-25af-4423-9128-f28ef1a1bce1
|
||||||
|
client-secret: BJ5Z5FxAuCTIUXkZHNh50R7zPrJMjE+LbesNFSg9WC6NdSFL9bxaQzSVpOcItgV1
|
||||||
|
host: 49.233.36.36
|
||||||
|
port: 8888
|
||||||
|
max-reconnect-count: 20
|
||||||
|
reconnect-time-step: 1
|
||||||
|
delay-ping-seconds: 3
|
||||||
|
send-client-info-active: false
|
||||||
|
# 上报服务器数据时间
|
||||||
|
send-client-info-second: 30
|
@ -1,6 +1,6 @@
|
|||||||
server:
|
server:
|
||||||
port: 8083
|
port: 8091
|
||||||
url: http://192.168.0.109:8083/servicecity
|
url: http://49.233.36.36:58091/servicecity
|
||||||
title: 稀土高新区社会治理综合管理平台
|
title: 稀土高新区社会治理综合管理平台
|
||||||
servlet:
|
servlet:
|
||||||
context-path: /servicecity
|
context-path: /servicecity
|
||||||
@ -26,7 +26,7 @@ spring:
|
|||||||
druid:
|
druid:
|
||||||
# url: jdbc:mysql://49.233.36.36:6688/db_cloud_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
|
# url: jdbc:mysql://49.233.36.36:6688/db_cloud_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
|
||||||
# url: jdbc:mysql://127.0.0.1:3306/db_cloud_servicecity?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
|
# url: jdbc:mysql://127.0.0.1:3306/db_cloud_servicecity?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
|
||||||
url: jdbc:mysql://192.168.0.151:3306/db_cloud_system_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
|
url: jdbc:mysql://127.0.0.1:3306/db_cloud_v2_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
|
||||||
db-type: mysql
|
db-type: mysql
|
||||||
driver-class-name: com.mysql.jdbc.Driver
|
driver-class-name: com.mysql.jdbc.Driver
|
||||||
# username: wanggeng
|
# username: wanggeng
|
||||||
@ -74,7 +74,7 @@ swagger:
|
|||||||
|
|
||||||
# 文件
|
# 文件
|
||||||
file:
|
file:
|
||||||
uploadPath: D:\ideaWorkspace\uploadfiles\pianzhang
|
uploadPath: /Users/wanggeng/Desktop/UploadFiles
|
||||||
imageTypes: png,jpg,jpeg,gif,blob
|
imageTypes: png,jpg,jpeg,gif,blob
|
||||||
videoTypes: mp4,rmvb
|
videoTypes: mp4,rmvb
|
||||||
audioTypes: mp3,wmv,wav
|
audioTypes: mp3,wmv,wav
|
||||||
@ -83,7 +83,7 @@ file:
|
|||||||
# 安全
|
# 安全
|
||||||
security:
|
security:
|
||||||
oauth2:
|
oauth2:
|
||||||
oauth-server: http://219.147.99.164:8082/usercenter
|
oauth-server: http://49.233.36.36:58090/usercenter
|
||||||
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
|
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
|
||||||
client:
|
client:
|
||||||
client-id: c024a89b35b04d4d8b5b4ea4d66a8acb
|
client-id: c024a89b35b04d4d8b5b4ea4d66a8acb
|
||||||
@ -100,7 +100,7 @@ security:
|
|||||||
check-token-access: ${security.oauth2.oauth-server}/oauth_client/token_key
|
check-token-access: ${security.oauth2.oauth-server}/oauth_client/token_key
|
||||||
|
|
||||||
api-path:
|
api-path:
|
||||||
user-center: http://219.147.99.164:8082/usercenter
|
user-center: http://49.233.36.36:58090/usercenter
|
||||||
|
|
||||||
# 访问控制
|
# 访问控制
|
||||||
access-control:
|
access-control:
|
||||||
@ -135,7 +135,7 @@ access-control:
|
|||||||
|
|
||||||
# 日志
|
# 日志
|
||||||
logging:
|
logging:
|
||||||
file: D:\ideaWorkspace\logs\pianzhang\pianzhang-logs.log
|
file: /Users/wanggeng/Desktop/UploadFiles/logs/systemcity/logs.log
|
||||||
level:
|
level:
|
||||||
root: error
|
root: error
|
||||||
com.cm: debug
|
com.cm: debug
|
||||||
|
Loading…
Reference in New Issue
Block a user