diff --git a/crabfit-frontend/deploy.sh b/crabfit-frontend/deploy.sh index d244013..d46ad53 100644 --- a/crabfit-frontend/deploy.sh +++ b/crabfit-frontend/deploy.sh @@ -10,10 +10,14 @@ handlers: - url: /(.*\..+)$ static_files: \1 upload: (.*\..+)$ + secure: always + redirect_http_response_code: 301 - url: /.* static_files: index.html upload: index.html + secure: always + redirect_http_response_code: 301 EOF gcloud app deploy --project=crabfit diff --git a/crabfit-frontend/example-app.yaml b/crabfit-frontend/example-app.yaml index 1fb87af..10ca879 100644 --- a/crabfit-frontend/example-app.yaml +++ b/crabfit-frontend/example-app.yaml @@ -4,8 +4,12 @@ handlers: - url: /(.*\..+)$ static_files: \1 upload: (.*\..+)$ + secure: always + redirect_http_response_code: 301 # Catch all handler to index.html - url: /.* static_files: index.html upload: index.html + secure: always + redirect_http_response_code: 301