Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ismoilovdevml committed Oct 16, 2023
1 parent 1d090d8 commit 4a145c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion configs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,24 @@ strategy = { RoundRobin = {} }

[[backend_pools]]
matcher = "Host('youtube.de') && Path('/admin')"
addresses = ["192.168.1.204"]
addresses = ["34.136.183.41"]
schemes = ["HTTP"]
strategy = { RoundRobin = {} }
[backend_pools.middlewares.RateLimiter]
limit = 10
window_sec = 1
[backend_pools.middlewares.Compression]

# simple configration
http_address = "[::]:80"
https_address = "[::]:443"

[[backend_pools]]
matcher = "Host('k8s.xilol.uz')"
addresses = ["34.136.183.44:8080", "34.136.183.44:15040", "34.136.183.44:15030"]
schemes = ["HTTP", "HTTPS"]
strategy = { RoundRobin = {} }
[backend_pools.middlewares.RateLimiter]
limit = 10
window_sec = 1
[backend_pools.middlewares.Compression]
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl Display for Scheme {
mod tests {

use super::*;
use crate::load_balancing::random::Random;
use crate::algorithms::random::Random;
use std::{collections::HashMap, iter::FromIterator};

fn generate_config(shared_data: SharedData) -> RuntimeConfig {
Expand Down

0 comments on commit 4a145c9

Please sign in to comment.