Skip to content

Commit

Permalink
feat: add nginx configuration to handle cookie locale
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentHardouin committed Jan 2, 2023
1 parent 921cc99 commit 2ad1ffe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions servers.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,10 @@ server {
add_header Cache-Control public;
add_header ETag "";
}

location = / {
if ($cookie_locale ~ [a-zA-Z-]+) {
rewrite / /$cookie_locale/ redirect;
}
}
}

0 comments on commit 2ad1ffe

Please sign in to comment.