...
# Web
frontend web
bind *:80
mode http
default_backend be1
#acl url_be1 path_beg /be1
#acl url_be2 path_beg /be2
#use_backend be1 if url_be1
#use_backend be2 if url_be2
# BackEnd
backend be1
server server1 backend1:port
backend be2
server server1 backend2:port
# MQTT
listen mqtt
bind *:1883
mode tcp
#maxconn 50000
#option clitcpka # For TCP keep-alive
#timeout client 3h #By default TCP keep-alive interval is 2hours in OS kernal, 'cat /proc/sys/net/ipv4/tcp_keepalive_time'
#timeout server 3h #By default TCP keep-alive interval is 2hours in OS kernal
server mqtt1 mqttserver:1883 check inter 10000 fall 2 rise 5 weight 1
https://topic.alibabacloud.com/tc/a/haproxy-three-different-types-of-configuration-options_8_8_31198475.html
https://www.readfog.com/a/1631183130227478528
指令: mvn spring-boot:build-image image 名稱參數: -Dspring-boot.build-image.imageName=myrepo/myimage Reference Build a Docker image using Maven and Spring Boot
May 4, 2023Host By Android Studio Emulator With RTSP Security Server terminal 1 emulator -avd [device_name] emulator power on wait till Boot completed open RTSP Security Server App terminal 2
Apr 14, 2023聯級管理 OneToMany orphanRemoval - 若 Many 方在 One 方修改後無對應的關聯對象,則自動刪除。example: @OneToMany(mappedBy = "parent", cascade = CascadeType.ALL, orphanRemoval = true) private List<Child> children = new ArrayList<>(); 修改前 { "id": "parent"
Mar 7, 2023排序ROW_NUMBER() = INDEX ( 1 2 3 4 5 6 ) ROW_NUMBER() OVER ( ORDER BY number ) as 'index' RANK() = 非連續排名 ( 重複名次時會跳過下一名 ex: 1 1 3 4 4 6 ) RANK() OVER ( ORDER BY score ) as 'rank' DENSE_RANK() = 連續重複排名 ( ex: 1 1 2 3 4 5 ) DENSE_RANK() OVER ( ORDER BY score ) as 'dense_rank'
Mar 7, 2023or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up