Browse Source

默认超时时间改成1天,提高大文件的传输稳定性

main
zhouxin 4 years ago
parent
commit
c21e604690
  1. 2
      src/main/java/com/github/zxbu/webdavteambition/config/AuthTomcatConfig.java
  2. 2
      src/main/resources/application.properties

2
src/main/java/com/github/zxbu/webdavteambition/config/EmbeddedTomcatConfig.java → src/main/java/com/github/zxbu/webdavteambition/config/AuthTomcatConfig.java

@ -19,7 +19,7 @@ import java.util.Collections; @@ -19,7 +19,7 @@ import java.util.Collections;
@Component
@ConditionalOnProperty(prefix = "aliyundrive.auth", name = "enable", matchIfMissing = true)
public class EmbeddedTomcatConfig implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>, Ordered {
public class AuthTomcatConfig implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>, Ordered {
@Autowired
private AliYunDriveProperties aliYunDriveProperties;

2
src/main/resources/application.properties

@ -5,3 +5,5 @@ logging.file.name=webdav.log @@ -5,3 +5,5 @@ logging.file.name=webdav.log
aliyundrive.auth.enable=true
aliyundrive.auth.user-name=admin
aliyundrive.auth.password=admin
server.tomcat.connection-timeout=1d
Loading…
Cancel
Save