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

Add /windows endpoint for Windows configuration + /apple endpoint cleanup #392

Merged
merged 6 commits into from
Mar 4, 2022

Conversation

e-zk
Copy link
Contributor

@e-zk e-zk commented Mar 4, 2022

  • read the CONTRIBUTING guidelines
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

Closes #340.

/windows:

  • Allows download of pre-filled .reg file /windows/tailscale.reg
  • Includes CLI/command-prompt instructions as well

/apple changes:

  • Renamed the function that prints HTML to AppleConfigMessage to match WindowsConfigMessage.
  • The template for /apple used .Url, when the correct variable needed to be .URL. This has been fixed.

e-zk added 3 commits March 4, 2022 19:53
- rename the gin function to AppleConfigMessage
- use <pre> + <code> for code blocks
- add headscale heading
- reword some sections
- registry file /windows/tailscale.reg is generated, filling in the
  associated control server URL
- also includes CLI instructions
- fix /apple incorrect template: 'Url' is supposed to be '.URL'
@e-zk e-zk force-pushed the windows-endpoint branch from 2f9228b to f9e0c13 Compare March 4, 2022 09:54
@e-zk e-zk marked this pull request as ready for review March 4, 2022 09:55
@e-zk e-zk requested review from juanfont and kradalby as code owners March 4, 2022 09:55
rename apple_mobileconfig.go to platform_config.go since the file
includes configuration info for multiple platforms now.
juanfont
juanfont previously approved these changes Mar 4, 2022
<!--
<p><code>curl {{.Url}}/apple/ios</code></p>
<pre><code>curl {{.URL}}/apple/ios</code></pre>
Copy link
Owner

Choose a reason for hiding this comment

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

Should we add a note here saying that it is not currently working?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It is commented out, <!-- so it does not show up on the html page

@kradalby
Copy link
Collaborator

kradalby commented Mar 4, 2022

Looks sensible, just need the golangcilint to pass :)

@e-zk
Copy link
Contributor Author

e-zk commented Mar 4, 2022

@kradalby @juanfont latest commit fixed comments causing golangci-lint to fail 👍

@kradalby kradalby merged commit 0720473 into juanfont:main Mar 4, 2022
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.

Windows equivalent to /apple
3 participants