Skip to content

Commit

Permalink
chore: use sticky session for traifik
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Dec 16, 2024
1 parent b275a41 commit f444b60
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/images/traefik.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,15 @@ pub fn traefik_labels(
name, shared_host
));
def.push(format!("traefik.http.routers.{}.priority=2", name));
def.push(format!(
"traefik.http.services.{}.loadBalancer.sticky.cookie.name=server_id",
name
));

def.push(format!(
"traefik.http.services.{}.loadBalancer.sticky.cookie.httpOnly=true",
name
));
}
} else {
def.push(format!(
Expand Down

0 comments on commit f444b60

Please sign in to comment.