Enable ssl redirect
This commit is contained in:
parent
c715b82ede
commit
291034ca4e
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue