From 86d382d17fc485531ab410f68bccfac145a8d6d2 Mon Sep 17 00:00:00 2001 From: Will McCutchen <will@mccutch.org> Date: Mon, 10 Aug 2020 14:44:29 -0700 Subject: [PATCH] Allow serving non-index pages via plain HTTP (fixes #35) --- app.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app.yaml b/app.yaml index e759096..29b1c0d 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 -- GitLab