CI Test
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m10s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m10s
This commit is contained in:
@@ -48,9 +48,19 @@ http {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Angular Routing
|
||||
# Redirect root to default locale (de) - using relative redirect
|
||||
location = / {
|
||||
return 301 $scheme://$http_host/de/;
|
||||
}
|
||||
|
||||
# Serve each locale
|
||||
location ~ ^/(de|de-DE|en)/ {
|
||||
try_files $uri $uri/ /$1/index.html;
|
||||
}
|
||||
|
||||
# Fallback for any other routes to default locale
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
return 301 $scheme://$http_host/de$request_uri;
|
||||
}
|
||||
|
||||
# Static Assets Caching
|
||||
|
||||
Reference in New Issue
Block a user