Skip to content
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

set directive order for tailscale_auth #61

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

willnorris
Copy link
Member

Now that we require Caddy 2.8, we can use the new RegisterDirectiveOrder func to specify the ordering of the tailscale_auth directive, rather than instructing users to set it manually.

@willnorris willnorris requested a review from irbekrm June 4, 2024 05:24
@willnorris willnorris added this to the v1 milestone Jun 4, 2024
Copy link
Contributor

@irbekrm irbekrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auth.go Outdated Show resolved Hide resolved
@willnorris
Copy link
Member Author

Added an optional nit, also the examples still use the order directive

oh, good catch. I really love how simple these example files are getting as we remove more unnecessary config!

Now that we require Caddy 2.8, we can use the new RegisterDirectiveOrder
func to specify the ordering of the `tailscale_auth` directive, rather
than instructing users to set it manually.

Signed-off-by: Will Norris <will@tailscale.com>
@willnorris willnorris merged commit d717dd1 into main Jun 5, 2024
2 checks passed
@willnorris willnorris deleted the will/directive-order branch June 5, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants