From 291034ca4e2e8ee5f306b202193dd6e724a4a08b Mon Sep 17 00:00:00 2001 From: Ben Grant Date: Mon, 8 Mar 2021 23:13:23 +1100 Subject: [PATCH] Enable ssl redirect --- crabfit-frontend/deploy.sh | 4 ++++ crabfit-frontend/example-app.yaml | 4 ++++ 2 files changed, 8 insertions(+) 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