使用nginx做反向代理和负载均衡、加入SSL证书,启动https、加入ICP备案信息
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.fjy</groupId>
|
<groupId>com.fjy</groupId>
|
||||||
<artifactId>spring</artifactId>
|
<artifactId>spring</artifactId>
|
||||||
<version>V2.6.1</version>
|
<version>V2.6.2</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>spring</name>
|
<name>spring</name>
|
||||||
|
|||||||
@@ -5,6 +5,11 @@ server:
|
|||||||
session:
|
session:
|
||||||
timeout: 1440s
|
timeout: 1440s
|
||||||
port: 8085
|
port: 8085
|
||||||
|
tomcat:
|
||||||
|
remote-ip-header: x-forwarded-for
|
||||||
|
protocol-header: x-forwarded-proto
|
||||||
|
port-header: X-Forwarded-Port
|
||||||
|
use-forward-headers: true
|
||||||
serverproperties:
|
serverproperties:
|
||||||
port_num: 8085
|
port_num: 8085
|
||||||
filePath: /www/cmsfile/
|
filePath: /www/cmsfile/
|
||||||
@@ -31,4 +36,4 @@ spring:
|
|||||||
show-sql: false
|
show-sql: false
|
||||||
#resources:
|
#resources:
|
||||||
# static-locations: classpath:/templates/
|
# static-locations: classpath:/templates/
|
||||||
debug: false
|
debug: false
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#控制配置文件调用
|
#控制配置文件调用
|
||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
active: dev
|
active: prod
|
||||||
@@ -25,8 +25,8 @@
|
|||||||
<!--滚动策略-->
|
<!--滚动策略-->
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
<!--路径文件名,文件名包含时间-->
|
<!--路径文件名,文件名包含时间-->
|
||||||
<fileNamePattern>F:\JAVA Workspace\Temp\log\%d\info.%d.log</fileNamePattern>
|
<!--<fileNamePattern>F:\JAVA Workspace\Temp\log\%d\info.%d.log</fileNamePattern>-->
|
||||||
<!--<fileNamePattern>/www/cmsfile/%d/info.%d.log</fileNamePattern>-->
|
<fileNamePattern>/www/cmsfile/%d/info.%d.log</fileNamePattern>
|
||||||
</rollingPolicy>
|
</rollingPolicy>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
@@ -44,8 +44,8 @@
|
|||||||
<!--滚动策略-->
|
<!--滚动策略-->
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
<!--路径文件名,文件名包含时间-->
|
<!--路径文件名,文件名包含时间-->
|
||||||
<fileNamePattern>F:\JAVA Workspace\Temp\log\error.%d.log</fileNamePattern>
|
<!--<fileNamePattern>F:\JAVA Workspace\Temp\log\error.%d.log</fileNamePattern>-->
|
||||||
<!--<fileNamePattern>/www/cmsfile/%d/error.%d.log</fileNamePattern>-->
|
<fileNamePattern>/www/cmsfile/%d/error.%d.log</fileNamePattern>
|
||||||
</rollingPolicy>
|
</rollingPolicy>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,10 @@ a{
|
|||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
.footer{
|
.footer{
|
||||||
|
width:100%;
|
||||||
|
font-size:14px;
|
||||||
|
position:fixed;
|
||||||
|
bottom:20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,8 @@
|
|||||||
<el-footer th:fragment="footer">
|
<el-footer th:fragment="footer">
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
© 2018 作业提交系统
|
© 2018 作业提交系统
|
||||||
|
<br>
|
||||||
|
<a href="http://gdcainfo.miitbeian.gov.cn/">©fjy8018.xin 粤ICP备18026008号 粤ICP备18026008号-1 </a>
|
||||||
</div>
|
</div>
|
||||||
</el-footer>
|
</el-footer>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -151,6 +151,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-footer th:include="dist/thymeleaf/layout :: footer"></el-footer>
|
||||||
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<script th:src="@{js/loginstyle.js}"></script>
|
<script th:src="@{js/loginstyle.js}"></script>
|
||||||
<!--<body>
|
<!--<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user