2023-10-17 03:18:28 +02:00
|
|
|
# The `v` field determines the configuration version. When software is released that changes the structure of the
|
|
|
|
# configuration, the software will expect this field to be incremented. This protects you against invalid configuration
|
|
|
|
# versions and will refer to you to the documentation when the configuration structure changes.
|
|
|
|
#
|
2023-10-18 17:47:26 +02:00
|
|
|
v: 3
|
2023-10-17 03:18:28 +02:00
|
|
|
|
2023-01-24 20:12:54 +01:00
|
|
|
# Setting the `host_match` setting will cause a `zrok access public` to ignore `Host` headers that do not contain the
|
|
|
|
# configured string. This will allow you to let a load balancer access the frontend by IP address for health check
|
|
|
|
# purposes, and will allow `Host` headers that match the configured DNS name to be routed through `zrok`.
|
|
|
|
#
|
2023-10-02 22:13:15 +02:00
|
|
|
#host_match: zrok.io
|
2023-09-05 16:55:55 +02:00
|
|
|
|
2024-07-31 19:19:36 +02:00
|
|
|
# Configure interstitial pages for this frontend. The interstitial page presents a warning to internet users, alerting
|
|
|
|
# them to the fact that they're visiting a zrok share.
|
2024-07-25 17:37:43 +02:00
|
|
|
#
|
2024-07-31 19:19:36 +02:00
|
|
|
#interstitial:
|
|
|
|
# # Enable or disable interstitial pages on this frontend.
|
|
|
|
# #
|
|
|
|
# enabled: true
|
|
|
|
#
|
|
|
|
# # Specify a list of User-Agent prefixes that should receive the interstitial page. If interstitial pages are enabled
|
|
|
|
# # and this list is not set, all user agents will receive an interstitial page.
|
|
|
|
# #
|
|
|
|
# user_agent_prefixes:
|
|
|
|
# - "Mozilla/5.0"
|
2024-07-25 17:37:43 +02:00
|
|
|
|
2023-10-05 19:34:27 +02:00
|
|
|
# The OAuth configuration is used when enabling OAuth authentication with your public frontend.
|
|
|
|
#
|
2023-09-05 16:55:55 +02:00
|
|
|
#oauth:
|
2023-10-18 17:47:26 +02:00
|
|
|
# # `bind_address` is the <address:port> of the interface where the OAuth frontend listener should
|
|
|
|
# # bind
|
2023-10-11 17:47:02 +02:00
|
|
|
# #
|
2023-10-18 17:47:26 +02:00
|
|
|
# bind_address: 127.0.0.1:8181
|
2023-10-11 17:47:02 +02:00
|
|
|
#
|
2023-10-18 17:47:26 +02:00
|
|
|
# # `redirect_url` is the <scheme://address[:port]> of the URL where OAuth requests should be directed.
|
2023-10-11 17:47:02 +02:00
|
|
|
# #
|
2023-10-18 17:47:26 +02:00
|
|
|
# redirect_url: https://oauth.zrok.io
|
|
|
|
#
|
|
|
|
# # `cookie_domain` is the domain where the authentication cookies should be applied. Should likely match
|
|
|
|
# # the `host_match` specified above.
|
|
|
|
# #
|
|
|
|
# cookie_domain: zrok.io
|
2023-10-11 17:47:02 +02:00
|
|
|
#
|
|
|
|
# # `hash_key` is a unique key for your installation that is used to secure authentication payloads
|
|
|
|
# # with OAuth providers.
|
|
|
|
# #
|
2023-10-05 19:34:27 +02:00
|
|
|
# hash_key: "<yourRandomHashKey>"
|
2023-10-11 17:47:02 +02:00
|
|
|
#
|
|
|
|
# # `providers` contains an array of provider details enabled in your installation. Currently only
|
|
|
|
# # `google` and `github` are supported. Your configuration can include `google`, `github`, or both.
|
|
|
|
# #
|
2023-09-05 16:55:55 +02:00
|
|
|
# providers:
|
|
|
|
# - name: google
|
|
|
|
# client_id: <client-id>
|
|
|
|
# client_secret: <client-secret>
|
|
|
|
# - name: github
|
|
|
|
# client_id: <client-id>
|
2024-01-17 22:37:46 +01:00
|
|
|
# client_secret: <client-secret>
|
|
|
|
#
|
|
|
|
# The `tls` section sets the cert and key to use and enables serving over HTTPS
|
|
|
|
#
|
|
|
|
#tls:
|
|
|
|
# cert_path: "/Path/To/Cert/zrok.crt"
|
|
|
|
# key_path: "/Path/To/Cert/zrok.key"
|