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: /(.*\..+)$
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

View file

@ -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