mirror of
https://github.com/openziti/zrok.git
synced 2025-05-01 14:44:36 +02:00
update config version from 2 to 3 and update reference configuration (#288)
This commit is contained in:
parent
f5ca92139b
commit
0284e41b55
@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ConfigVersion = 2
|
const ConfigVersion = 3
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
V int
|
V int
|
||||||
|
86
etc/ctrl.yml
86
etc/ctrl.yml
@ -9,7 +9,7 @@
|
|||||||
# configuration, the software will expect this field to be incremented. This protects you against invalid configuration
|
# configuration, the software will expect this field to be incremented. This protects you against invalid configuration
|
||||||
# versions.
|
# versions.
|
||||||
#
|
#
|
||||||
v: 2
|
v: 3
|
||||||
|
|
||||||
admin:
|
admin:
|
||||||
# The `secrets` array contains a list of strings that represent valid `ZROK_ADMIN_TOKEN` values to be used for
|
# The `secrets` array contains a list of strings that represent valid `ZROK_ADMIN_TOKEN` values to be used for
|
||||||
@ -23,6 +23,20 @@ admin:
|
|||||||
#
|
#
|
||||||
tou_link: '<a href="https://google.com" target="_">Terms and Conditions</a>'
|
tou_link: '<a href="https://google.com" target="_">Terms and Conditions</a>'
|
||||||
|
|
||||||
|
# The `bridge` section configures the `zrok controller metrics bridge`, specifying the source and sink where OpenZiti
|
||||||
|
# `fabric.usage` events are consumed and then sent into `zrok`. For production environments, we recommend that you use
|
||||||
|
# the `fileSource`, tailing the events from a JSON file written to by the OpenZiti controller. The `amqpSink` will then
|
||||||
|
# forward the events to an AMQP queue for consumption by multiple `zrok` controllers.
|
||||||
|
#
|
||||||
|
bridge:
|
||||||
|
source:
|
||||||
|
type: fileSource
|
||||||
|
path: /tmp/fabric-usage.log
|
||||||
|
sink:
|
||||||
|
type: amqpSink
|
||||||
|
url: amqp://guest:guest@localhost:5672
|
||||||
|
queue_name: events
|
||||||
|
|
||||||
# The `endpoint` section determines where the HTTP listener that serves the API and web console will be bound.
|
# The `endpoint` section determines where the HTTP listener that serves the API and web console will be bound.
|
||||||
#
|
#
|
||||||
endpoint:
|
endpoint:
|
||||||
@ -38,20 +52,46 @@ email:
|
|||||||
password: ""
|
password: ""
|
||||||
from: ziggy@zrok.io
|
from: ziggy@zrok.io
|
||||||
|
|
||||||
# InfluxDB configuration. InfluxDB is used to support sparkline displays in the web console.
|
# Service instance limits configuration.
|
||||||
#
|
#
|
||||||
influx:
|
# See `docs/guides/metrics-and-limits/configuring-limits.md` for details.
|
||||||
url: http://127.0.0.1:8086
|
|
||||||
bucket: zrok
|
|
||||||
org: zrok
|
|
||||||
token: ""
|
|
||||||
|
|
||||||
# Instance-wide limits for per-user limits. `-1` represents unlimited. Each user can have the `limitless` flag set on
|
|
||||||
# their record in the `accounts` table in the database, to allow the user to ignore the instance-wide limits.
|
|
||||||
#
|
#
|
||||||
limits:
|
limits:
|
||||||
environments: -1
|
environments: -1
|
||||||
shares: -1
|
shares: -1
|
||||||
|
bandwidth:
|
||||||
|
per_account:
|
||||||
|
period: 5m
|
||||||
|
warning:
|
||||||
|
rx: -1
|
||||||
|
tx: -1
|
||||||
|
total: 7242880
|
||||||
|
limit:
|
||||||
|
rx: -1
|
||||||
|
tx: -1
|
||||||
|
total: 10485760
|
||||||
|
per_environment:
|
||||||
|
period: 5m
|
||||||
|
warning:
|
||||||
|
rx: -1
|
||||||
|
tx: -1
|
||||||
|
total: -1
|
||||||
|
limit:
|
||||||
|
rx: -1
|
||||||
|
tx: -1
|
||||||
|
total: -1
|
||||||
|
per_share:
|
||||||
|
period: 5m
|
||||||
|
warning:
|
||||||
|
rx: -1
|
||||||
|
tx: -1
|
||||||
|
total: -1
|
||||||
|
limit:
|
||||||
|
rx: -1
|
||||||
|
tx: -1
|
||||||
|
total: -1
|
||||||
|
enforcing: false
|
||||||
|
cycle: 5m
|
||||||
|
|
||||||
# Background maintenance job configuration. The `registration` job purges registration requests created through the
|
# Background maintenance job configuration. The `registration` job purges registration requests created through the
|
||||||
# `zrok invite` tool. The `reset_password` job purges password reset requests.
|
# `zrok invite` tool. The `reset_password` job purges password reset requests.
|
||||||
@ -66,17 +106,35 @@ maintenance:
|
|||||||
check_frequency: 15m
|
check_frequency: 15m
|
||||||
batch_limit: 500
|
batch_limit: 500
|
||||||
|
|
||||||
# The name of the service used to report metrics from the frontends (`zrok access public`) to the zrok controller
|
# Metrics configuration.
|
||||||
# fleet.
|
|
||||||
#
|
#
|
||||||
metrics:
|
metrics:
|
||||||
service_name: metrics
|
agent:
|
||||||
|
# The `source` controls where the `zrok controller` looks to consume OpenZiti `fabric.usage` events. This works in
|
||||||
|
# concert with the `bridge` section above to consume events from an AMQP queue. This can also be configured to work
|
||||||
|
# with a `fileSource` (see the `bridge` section above for details), and also with a `websocketSource`.
|
||||||
|
#
|
||||||
|
source:
|
||||||
|
type: amqpSource
|
||||||
|
url: amqp://guest:guest@localhost:5672
|
||||||
|
queue_name: events
|
||||||
|
#
|
||||||
|
# The `influx` section configures access to the InfluxDB instance used to store `zrok` metrics.
|
||||||
|
#
|
||||||
|
influx:
|
||||||
|
url: "http://127.0.0.1:8086"
|
||||||
|
bucket: zrok
|
||||||
|
org: zrok
|
||||||
|
token: "<INFLUX TOKEN>"
|
||||||
|
|
||||||
# Configure the generated URL for the registration email. The registration token will be appended to this URL.
|
# Configure the generated URL for the registration email. The registration token will be appended to this URL.
|
||||||
#
|
#
|
||||||
registration:
|
registration:
|
||||||
registration_url_template: https://zrok.server.com/register
|
registration_url_template: https://zrok.server.com/register
|
||||||
token_strategy: store
|
#
|
||||||
|
# Set `token_strategy` to `store` to require an invite token.
|
||||||
|
#
|
||||||
|
#token_strategy: store
|
||||||
|
|
||||||
# Configure the generated URL for password resets. The reset token will be appended to this URL.
|
# Configure the generated URL for password resets. The reset token will be appended to this URL.
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user