-
Couldn't load subscription status.
- Fork 87
Make all config options mandatory #541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -27,21 +27,37 @@ map: | |||||
| - share:rw | ||||||
| ports: | ||||||
| 41641/udp: null | ||||||
| options: | ||||||
| accept_dns: true | ||||||
| accept_routes: true | ||||||
| advertise_exit_node: true | ||||||
| advertise_connector: true | ||||||
| advertise_routes: | ||||||
| - local_subnets | ||||||
| log_level: info | ||||||
lmagyar marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| login_server: "https://controlplane.tailscale.com" | ||||||
| share_homeassistant: disabled | ||||||
| share_on_port: 443 | ||||||
| snat_subnet_routes: true | ||||||
| stateful_filtering: false | ||||||
| tags: [] | ||||||
| taildrop: true | ||||||
| userspace_networking: true | ||||||
| schema: | ||||||
| accept_dns: bool? | ||||||
| accept_routes: bool? | ||||||
| advertise_exit_node: bool? | ||||||
| advertise_connector: bool? | ||||||
| accept_dns: bool | ||||||
| accept_routes: bool | ||||||
| advertise_exit_node: bool | ||||||
| advertise_connector: bool | ||||||
| advertise_routes: | ||||||
| - "match(^(((25[0-5]|(2[0-4]|1\\d|[1-9]?)\\d)\\.){3}(25[0-5]|(2[0-4]|1\\d|[1-9]?)\\d)\\/(3[0-2]|[12]?\\d)|[a-fA-F\\d.:]+:[a-fA-F\\d.:]+\\/(12[0-8]|(1[01]|[1-9]?)\\d))$)?" | ||||||
| - "match(^(?:local.subnets|(?:(?:25[0-5]|(?:2[0-4]|1\\d|[1-9]?)\\d)\\.){3}(?:25[0-5]|(?:2[0-4]|1\\d|[1-9]?)\\d)\\/(?:3[0-2]|[12]?\\d)|[a-fA-F\\d.:]+:[a-fA-F\\d.:]+\\/(?:12[0-8]|(?:1[01]|[1-9]?)\\d))$)" | ||||||
|
||||||
| - "match(^(?:local.subnets|(?:(?:25[0-5]|(?:2[0-4]|1\\d|[1-9]?)\\d)\\.){3}(?:25[0-5]|(?:2[0-4]|1\\d|[1-9]?)\\d)\\/(?:3[0-2]|[12]?\\d)|[a-fA-F\\d.:]+:[a-fA-F\\d.:]+\\/(?:12[0-8]|(?:1[01]|[1-9]?)\\d))$)" | |
| - "match(^(?:local_subnets|(?:(?:25[0-5]|(?:2[0-4]|1\\d|[1-9]?)\\d)\\.){3}(?:25[0-5]|(?:2[0-4]|1\\d|[1-9]?)\\d)\\/(?:3[0-2]|[12]?\\d)|[a-fA-F\\d.:]+:[a-fA-F\\d.:]+\\/(?:12[0-8]|(?:1[01]|[1-9]?)\\d))$)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See stage2_hook.sh above.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -59,30 +59,25 @@ if bashio::var.has_value "${proxy_and_funnel_port}"; then | |||||
| fi | ||||||
|
|
||||||
| # Disable protect-subnets service when userspace-networking is enabled or accepting routes is disabled | ||||||
| if ! bashio::config.has_value "userspace_networking" || \ | ||||||
| bashio::config.true "userspace_networking" || \ | ||||||
| if bashio::config.true "userspace_networking" || \ | ||||||
| bashio::config.false "accept_routes"; | ||||||
| then | ||||||
| rm /etc/s6-overlay/s6-rc.d/post-tailscaled/dependencies.d/protect-subnets | ||||||
| fi | ||||||
lmagyar marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
|
||||||
| # If advertise_routes is configured, do not wait for the local network to be ready to collect subnet information | ||||||
| if bashio::config.exists "advertise_routes"; | ||||||
| # If local subnets are not configured in advertise_routes, do not wait for the local network to be ready to collect subnet information | ||||||
| if ! bashio::config "advertise_routes" | grep -Eq "^local.subnets$"; | ||||||
|
||||||
| if ! bashio::config "advertise_routes" | grep -Eq "^local.subnets$"; | |
| if ! bashio::config "advertise_routes" | grep -Eq "^local_subnets$"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was intentional, if users use "local-subnets", with a "-", it just works.
Change it to a strict match for "_"? (note to myself: also change the config.yaml)
Uh oh!
There was an error while loading. Please reload this page.