blob: f4f28d7bc8091546b0be2f001c7fb5d7e7c6a862 [file]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# Comes from apache/tooling-devkit (devkit.files): change it there, not in a copy.
# https://localhost in front of the app on https://localhost:4500, started by `make dev-host`.
#
# ASF OAuth refuses a redirect URI that carries a port, and the app builds that URI from the
# host the browser used, so signing in only works at https://localhost. The proxy passes the
# host through unchanged. It is run from the repository root, with the certificate `make certs`
# made for the app; the app's own certificate is not verified, being on this machine.
{
auto_https off
admin off
}
https://localhost {
tls state/cert.pem state/key.pem
reverse_proxy https://localhost:4500 {
transport http {
tls_insecure_skip_verify
}
}
}