Skip to content

Commit

Permalink
⚡️ feat(application-local.yml, Http3NettyCustomizer.java, `BootAp…
Browse files Browse the repository at this point in the history
…plication.java`, `proxy.conf.json`): Configure SSL and HTTP3 settings for enhanced security and performance.
  • Loading branch information
vnobo committed Dec 9, 2024
1 parent 74f1861 commit 58e9cf2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void run(ApplicationArguments args) {
batch_size int := 100; -- 每批提交的记录数
commit_count int := 0; -- 记录已提交的批次数
begin
for i in 1..1000000
for i in 1..100
loop
-- 生成用户代码
if i < 1000 then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
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 @@ -12,7 +11,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
10 changes: 9 additions & 1 deletion boot/platform/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@ logging:
org.springframework.r2dbc: debug
io.r2dbc.postgresql.PARAM: debug

server.port: 8443
server:
port: 8443
#ssl.bundle: server-http3

spring:
application.name: plate
#ssl.bundle.jks:
# server-http3:
# key.alias: plate
# keystore:
# location: classpath:plate.jks
# password: 123456
r2dbc:
url: r2dbc:postgres://127.0.0.1:5432/plate?fetchSize=5000
username: farmer
Expand Down
2 changes: 1 addition & 1 deletion ng-ui/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/api": {
"target": "http://localhost:8443",
"target": "https://localhost:8443/",
"secure": false,
"changeOrigin": true,
"logLevel": "debug",
Expand Down

0 comments on commit 58e9cf2

Please sign in to comment.