Enable ssl redirect

This commit is contained in:
Ben Grant 2021-03-08 23:13:23 +11:00
parent c715b82ede
commit 291034ca4e
2 changed files with 8 additions and 0 deletions

View file

@ -10,10 +10,14 @@ handlers:
- url: /(.*\..+)$ - url: /(.*\..+)$
static_files: \1 static_files: \1
upload: (.*\..+)$ upload: (.*\..+)$
secure: always
redirect_http_response_code: 301
- url: /.* - url: /.*
static_files: index.html static_files: index.html
upload: index.html upload: index.html
secure: always
redirect_http_response_code: 301
EOF EOF
gcloud app deploy --project=crabfit gcloud app deploy --project=crabfit

View file

@ -4,8 +4,12 @@ handlers:
- url: /(.*\..+)$ - url: /(.*\..+)$
static_files: \1 static_files: \1
upload: (.*\..+)$ upload: (.*\..+)$
secure: always
redirect_http_response_code: 301
# Catch all handler to index.html # Catch all handler to index.html
- url: /.* - url: /.*
static_files: index.html static_files: index.html
upload: index.html upload: index.html
secure: always
redirect_http_response_code: 301