Skip to content
Snippets Groups Projects
Unverified Commit b697be70 authored by Will McCutchen's avatar Will McCutchen Committed by GitHub
Browse files

Merge pull request #36 from mccutchen/https-or-not

Allow serving non-index pages via plain HTTP (fixes #35)
parents 5a877e21 711756f7
No related branches found
No related tags found
No related merge requests found
--- ---
runtime: go112 runtime: go113
main: ./cmd/go_httpbin main: ./cmd/go_httpbin
# redirect everything to https
handlers: handlers:
- url: /.* # Always redirect index requests to https
- url: /
script: auto script: auto
secure: always secure: always
redirect_http_response_code: 301 redirect_http_response_code: 301
# Allow requests for any other resources via either http or https
- url: /.+
script: auto
secure: optional
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment