Files
ianitor/crates/core/tests/golden/edge.json
T

148 lines
3.2 KiB
JSON

{
"version": 3,
"http_listen": "0.0.0.0:80",
"https_listen": "0.0.0.0:443",
"https_port": 443,
"cert_dir": "/var/lib/ianitor/certs",
"state_dir": "/var/lib/ianitor",
"access_log": "/var/log/ianitor/access.log",
"acme": {
"directory": "https://acme-staging-v02.api.letsencrypt.org/directory",
"email": "admin@example.org"
},
"forward_auth": {
"upstream": {
"address": "127.0.0.1:9091",
"tls": false,
"sni": "127.0.0.1"
},
"path_and_query": "/api/authz/forward-auth",
"copy_headers": [
"Remote-User",
"Remote-Groups",
"Remote-Email",
"Remote-Name"
],
"strip_headers": [
"Remote-User",
"Remote-Groups",
"Remote-Email",
"Remote-Name"
]
},
"device_certs": {
"ca": "/var/lib/ianitor/certs/domi-devices-ca.pem",
"allow": "/var/lib/ianitor/certs/domi-devices.pem"
},
"hosts": [
{
"hostname": "photos.example.org",
"tls": {
"source": "acme"
},
"upstreams": [
{
"address": "127.0.0.1:2342",
"tls": false,
"sni": "127.0.0.1"
},
{
"address": "127.0.0.1:2343",
"tls": false,
"sni": "127.0.0.1"
}
],
"forward_auth": false,
"websockets": true,
"request_headers": [
{
"op": "set",
"name": "X-Api-Key",
"value": {
"kind": "secret",
"name": "photos_api_key"
}
},
{
"op": "remove",
"name": "X-Debug"
}
],
"response_headers": [
{
"op": "set",
"name": "Strict-Transport-Security",
"value": {
"kind": "literal",
"value": "max-age=31536000"
}
},
{
"op": "remove",
"name": "X-Powered-By"
}
],
"health_check": {
"path": "/api/v1/status",
"interval_secs": 15
},
"access_log": true,
"share_links": false,
"device_certs": false
},
{
"hostname": "status.example.org",
"tls": {
"source": "acme"
},
"upstreams": [
{
"address": "[::1]:3001",
"tls": false,
"sni": "::1"
}
],
"forward_auth": false,
"websockets": true,
"request_headers": [],
"response_headers": [],
"health_check": null,
"access_log": false,
"share_links": false,
"device_certs": true
},
{
"hostname": "wiki.home.test",
"tls": {
"source": "files",
"cert": "/var/lib/ianitor/certs/wiki.home.test.crt",
"key": "/var/lib/ianitor/certs/wiki.home.test.key"
},
"upstreams": [
{
"address": "wiki.lan:8443",
"tls": true,
"sni": "wiki.lan"
}
],
"forward_auth": true,
"websockets": false,
"request_headers": [
{
"op": "set",
"name": "Authorization",
"value": {
"kind": "secret",
"name": "wiki_token"
}
}
],
"response_headers": [],
"health_check": null,
"access_log": false,
"share_links": false,
"device_certs": false
}
]
}