v0.5-rc1: schema fixes, provider file example update

This commit is contained in:
yusing 2024-09-16 13:19:24 +08:00
parent 7a0478164f
commit 4cddd4ff71
4 changed files with 26 additions and 21 deletions

View file

@ -8,7 +8,14 @@ jobs:
build_and_push: build_and_push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Build and Push Container to ghcr.io - name: Set up Docker Build and Push
id: docker_build_push
uses: GlueOps/github-actions-build-push-containers@v0.3.7 uses: GlueOps/github-actions-build-push-containers@v0.3.7
with: with:
tags: latest,${{ github.ref_name }} tags: ${{ github.ref_name }}
- name: Tag as latest
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, '-')
run: |
docker tag ghcr.io/${{ github.repository }}:${{ github.ref_name }} ghcr.io/${{ github.repository }}:latest
docker push ghcr.io/${{ github.repository }}:latest

View file

@ -1,25 +1,20 @@
example: # matching `app.y.z` example: # matching `app.y.z`
# optional, defaults to http scheme: https
scheme: http
# required, proxy target
host: 10.0.0.1 host: 10.0.0.1
# optional, defaults to 80 for http, 443 for https port: 80
port: "80" path_patterns: # Check https://pkg.go.dev/net/http#hdr-Patterns-ServeMux for syntax
# optional, defaults to empty - GET / # accept any GET request
path: - POST /auth # for /auth and /auth/* accept only POST
# optional (scheme=https only) - GET /home/{$}
# no_tls_verify: false - /b/{bucket}/o/{any}
# optional headers to set / override (http(s) only) no_tls_verify: false
set_headers: set_headers:
HEADER_A: HEADER_A: VALUE_A, VALUE_B
- VALUE_1 HEADER_B: VALUE_C
- VALUE_2
HEADER_B: [VALUE_3]
# optional headers to hide (http(s) only)
hide_headers: hide_headers:
- HEADER_C - HEADER_C
- HEADER_D - HEADER_D
app1: # matching `app1.y.z` -> http://some_host app1:
host: some_host host: some_host
app2: app2:
scheme: tcp scheme: tcp

View file

@ -108,7 +108,7 @@
"markdownDescription": "A list of [path patterns](https://pkg.go.dev/net/http#hdr-Patterns-ServeMux)", "markdownDescription": "A list of [path patterns](https://pkg.go.dev/net/http#hdr-Patterns-ServeMux)",
"items": { "items": {
"type": "string", "type": "string",
"pattern": "^((GET|POST|DELETE|PUT|PATCH|HEAD|OPTIONS|CONNECT)\\s)?(/\\w*)+/?$", "pattern": "^((GET|POST|DELETE|PUT|PATCH|HEAD|OPTIONS|CONNECT)\\s)?(/(\\w*|{\\w*}|{\\$}))+/?$",
"patternErrorMessage": "invalid path pattern" "patternErrorMessage": "invalid path pattern"
} }
}, },
@ -123,7 +123,10 @@
"description": "Proxy headers to set", "description": "Proxy headers to set",
"additionalProperties": { "additionalProperties": {
"items": { "items": {
"type": "string" "type": "object",
"additionalProperties": {
"type": "string"
}
} }
} }
}, },

View file

@ -1 +1 @@
0.5.0-beta4 0.5.0-rc1