Skip to content

Commit

Permalink
Move config mod and update project (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
hippalus authored Sep 11, 2024
1 parent 8acb622 commit 8c3c3dd
Show file tree
Hide file tree
Showing 11 changed files with 421 additions and 675 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions config/umay-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ shutdown_grace_period: 60 # in seconds
# Stream block for TCP, UDP, WSS, etc.
stream:
upstreams:
backend_tcp:
message_broker:
load_balancer: round_robin
service_discovery: dns
servers:
Expand Down Expand Up @@ -47,7 +47,7 @@ stream:
listen:
port: 12345
protocol: tcp
proxy_pass: backend_tcp
proxy_pass: message_broker
tls:
enabled: true
proxy_tls: on
Expand All @@ -60,7 +60,7 @@ stream:
proxy_tls_protocols:
- TLSv1.2
- TLSv1.3
proxy_tls_ciphers: "HIGH:!aNULL:!MD5"
proxy_tls_ciphers: "TLS13_AES_256_GCM_SHA384"

- name: "dns_server"
listen:
Expand All @@ -85,7 +85,7 @@ stream:
proxy_tls_protocols:
- TLSv1.2
- TLSv1.3
proxy_tls_ciphers: "HIGH:!aNULL:!MD5"
proxy_tls_ciphers: "TLS13_AES_256_GCM_SHA384"

- name: "single_backend_server"
listen:
Expand Down Expand Up @@ -122,7 +122,7 @@ http:
protocols:
- TLSv1.2
- TLSv1.3
ciphers: "HIGH:!aNULL:!MD5"
ciphers: "TLS13_AES_256_GCM_SHA384"
proxy_pass: backend
location:
path: "/"
Expand Down
2 changes: 1 addition & 1 deletion config/umay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ stream:
proxy_tls_protocols:
- TLSv1.2
- TLSv1.3
proxy_tls_ciphers: "HIGH:!aNULL:!MD5"
proxy_tls_ciphers: "TLS13_AES_256_GCM_SHA384"
Loading

0 comments on commit 8c3c3dd

Please sign in to comment.