Skip to content

Commit

Permalink
updated web page
Browse files Browse the repository at this point in the history
  • Loading branch information
s-archer committed Sep 11, 2024
1 parent 2eddde5 commit b7fe869
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion http.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function path_rule(r) {
r.headersOut['Content-Type'] = 'text/html';
r.headersOut['Strict-Transport-Security'] = 'max-age=20000000';
r.headersOut['Set-Cookie'] = [
'weak-cookie=weakphrase; Path=/',
'weak-cookie=weakphrase; Path=/response-headers',
'other-cookie=value-xyz'
];
title = "Hello Page";
Expand Down
13 changes: 12 additions & 1 deletion terraform/lb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ resource "volterra_http_loadbalancer" "nginx-reflector" {
name = volterra_origin_pool.nginx-reflector.name
}
}

routes {
custom_route_object {
route_ref {
Expand All @@ -38,14 +39,24 @@ resource "volterra_http_loadbalancer" "nginx-reflector" {
}
}
}

protected_cookies {
name = "weak-cookie"
samesite_strict = true
add_secure = true
add_httponly = true
disable_tampering_protection = true
}


cookie_stickiness {
name = "sticky"
ttl = 60
path = "/"
ignore_httponly = true
ignore_samesite = true
ignore_secure = true
}

more_option {
response_headers_to_add {
name = "Strict-Transport-Security"
Expand Down

0 comments on commit b7fe869

Please sign in to comment.