Skip to content

Commit

Permalink
refactor(platform): remove unused HTTP/3 and SSL configurations
Browse files Browse the repository at this point in the history
- Remove SSL configuration from application.yml
- Comment out HTTP/3 codec dependency in build.gradle
- Update Http3NettyCustomizer class:
  - Remove unused imports
  - Uncomment @configuration annotation  - Update class documentation
  • Loading branch information
vnobo committed Dec 7, 2024
1 parent c8bed15 commit 05bcb83
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion boot/platform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {
implementation("org.postgresql:r2dbc-postgresql")
implementation("io.r2dbc:r2dbc-spi")

//runtimeOnly ('io.netty.incubator:netty-incubator-codec-http3:0.0.28.Final')
runtimeOnly ('io.netty.incubator:netty-incubator-codec-http3:0.0.28.Final')
implementation('io.netty:netty-tcnative-boringssl-static')

testImplementation 'org.springframework.security:spring-security-test'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.springframework.boot.ssl.SslBundle;
import org.springframework.boot.web.embedded.netty.NettyReactiveWebServerFactory;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.context.annotation.Configuration;
import reactor.netty.http.Http3SslContextSpec;
import reactor.netty.http.HttpProtocol;

Expand All @@ -11,7 +12,7 @@
/**
* @author <a href="https://github.com/vnobo">Alex Bob</a>
*/
//@Configuration(proxyBeanMethods = false)
@Configuration(proxyBeanMethods = false)
public class Http3NettyCustomizer implements WebServerFactoryCustomizer<NettyReactiveWebServerFactory> {

@Override
Expand Down
11 changes: 1 addition & 10 deletions boot/platform/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ server:
shutdown: graceful
http2.enabled: true
compression.enabled: true
#ssl:
# enabled: true
# bundle: server-http3

spring:
lifecycle.timeout-per-shutdown-phase: 20s
Expand All @@ -30,10 +27,4 @@ spring:
timeout: 8H
redis:
flush-mode: on_save
repository-type: indexed
#ssl.bundle.jks:
# server-http3:
# key.alias: plate
# keystore:
# location: classpath:plate.jks
# password: 123456
repository-type: indexed
Binary file added boot/platform/src/main/resources/pate.jks
Binary file not shown.
Binary file removed boot/platform/src/main/resources/plate.jks
Binary file not shown.

0 comments on commit 05bcb83

Please sign in to comment.