[core] Schema: tests first for validation and compiler determinism (red: 37+11 failing)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
hostname = "photos.example.org"
|
||||
upstreams = ["http://127.0.0.1:2342", "http://127.0.0.1:2343"]
|
||||
tls = "letsencrypt"
|
||||
websockets = true
|
||||
access_log = "truncated"
|
||||
|
||||
[health_check]
|
||||
path = "/api/v1/status"
|
||||
interval_secs = 15
|
||||
|
||||
[[request_headers]]
|
||||
action = "set"
|
||||
name = "X-Api-Key"
|
||||
secret = "photos_api_key"
|
||||
|
||||
[[request_headers]]
|
||||
action = "remove"
|
||||
name = "X-Debug"
|
||||
|
||||
[[response_headers]]
|
||||
action = "set"
|
||||
name = "Strict-Transport-Security"
|
||||
value = "max-age=31536000"
|
||||
|
||||
[[response_headers]]
|
||||
action = "remove"
|
||||
name = "X-Powered-By"
|
||||
@@ -0,0 +1,2 @@
|
||||
hostname = "status.example.org"
|
||||
upstreams = ["http://[::1]:3001"]
|
||||
@@ -0,0 +1,10 @@
|
||||
hostname = "wiki.home.test"
|
||||
upstreams = ["https://wiki.lan:8443"]
|
||||
tls = "domi"
|
||||
auth = "forward-auth"
|
||||
websockets = false
|
||||
|
||||
[[request_headers]]
|
||||
action = "set"
|
||||
name = "Authorization"
|
||||
secret = "wiki_token"
|
||||
@@ -0,0 +1,9 @@
|
||||
# Site-wide settings for the routes repo (sample used by the compiler tests).
|
||||
secrets = ["photos_api_key", "wiki_token"]
|
||||
|
||||
[forward_auth]
|
||||
url = "http://127.0.0.1:9091/api/authz/forward-auth"
|
||||
|
||||
[acme]
|
||||
email = "admin@example.org"
|
||||
directory = "https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||
Reference in New Issue
Block a user