使用nginx做反向代理和负载均衡、加入SSL证书,启动https、加入ICP备案信息

This commit is contained in:
2018-03-15 19:58:20 +08:00
parent 82893a9959
commit 73bb17700f
7 changed files with 21 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
<groupId>com.fjy</groupId>
<artifactId>spring</artifactId>
<version>V2.6.1</version>
<version>V2.6.2</version>
<packaging>jar</packaging>
<name>spring</name>

View File

@@ -5,6 +5,11 @@ server:
session:
timeout: 1440s
port: 8085
tomcat:
remote-ip-header: x-forwarded-for
protocol-header: x-forwarded-proto
port-header: X-Forwarded-Port
use-forward-headers: true
serverproperties:
port_num: 8085
filePath: /www/cmsfile/
@@ -31,4 +36,4 @@ spring:
show-sql: false
#resources:
# static-locations: classpath:/templates/
debug: false
debug: false

View File

@@ -1,4 +1,4 @@
#控制配置文件调用
spring:
profiles:
active: dev
active: prod

View File

@@ -25,8 +25,8 @@
<!--滚动策略-->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--路径文件名,文件名包含时间-->
<fileNamePattern>F:\JAVA Workspace\Temp\log\%d\info.%d.log</fileNamePattern>
<!--<fileNamePattern>/www/cmsfile/%d/info.%d.log</fileNamePattern>-->
<!--<fileNamePattern>F:\JAVA Workspace\Temp\log\%d\info.%d.log</fileNamePattern>-->
<fileNamePattern>/www/cmsfile/%d/info.%d.log</fileNamePattern>
</rollingPolicy>
</appender>
@@ -44,8 +44,8 @@
<!--滚动策略-->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!--路径文件名,文件名包含时间-->
<fileNamePattern>F:\JAVA Workspace\Temp\log\error.%d.log</fileNamePattern>
<!--<fileNamePattern>/www/cmsfile/%d/error.%d.log</fileNamePattern>-->
<!--<fileNamePattern>F:\JAVA Workspace\Temp\log\error.%d.log</fileNamePattern>-->
<fileNamePattern>/www/cmsfile/%d/error.%d.log</fileNamePattern>
</rollingPolicy>
</appender>

View File

@@ -55,6 +55,10 @@ a{
width: 50%;
}
.footer{
width:100%;
font-size:14px;
position:fixed;
bottom:20px;
text-align: center;
}

View File

@@ -109,6 +109,8 @@
<el-footer th:fragment="footer">
<div class="footer">
© 2018 作业提交系统
<br>
<a href="http://gdcainfo.miitbeian.gov.cn/">©fjy8018.xin 粤ICP备18026008号 粤ICP备18026008号-1 </a>
</div>
</el-footer>
</body>

View File

@@ -151,6 +151,9 @@
</div>
</el-col>
</el-row>
<el-row>
<el-footer th:include="dist/thymeleaf/layout :: footer"></el-footer>
</el-row>
</div>
<script th:src="@{js/loginstyle.js}"></script>
<!--<body>