diff --git a/app.yaml b/app.yaml index e75909686c920aa56dea7a62f3a6a19864dff4c8..29b1c0d9f55c375902cfb9acef1545d2dd950ccf 100644 --- a/app.yaml +++ b/app.yaml @@ -3,9 +3,14 @@ runtime: go112 main: ./cmd/go_httpbin -# redirect everything to https handlers: - - url: /.* + # Always redirect index requests to https + - url: / script: auto secure: always redirect_http_response_code: 301 + + # Allow requests for any other resources via either http or https + - url: /.+ + script: auto + secure: optional