Juan Font Alonso
27947c6746
This commit disables the version checker when JSON output ( #153 )
2021-10-13 00:18:55 +02:00
Juan Font Alonso
a6adcdafa9
Added switch to disable the update checks
2021-09-27 17:24:34 +02:00
Juan Font Alonso
7c37086dd6
Handle lack of internet
2021-09-27 17:12:31 +02:00
Juan Font Alonso
2048e9e136
Added version checker on startup
2021-09-27 16:26:18 +02:00
Aaron Bieber
203e6bc6b2
Remove trace lines about NO_COLOR.
2021-09-12 07:30:35 -06:00
Kristoffer Dalby
73a00c89ff
Try to detect color support, make color configurable
...
This commit tries to detect if users can render colors in their terminal
and only enables color logs if that is true.
It also adds no-color.org's NO_COLOR env var support to allow it to be
disabled.
2021-08-06 07:29:57 +01:00
Kristoffer Dalby
cd2ca137c0
Make log_level user configurable
2021-08-05 19:19:25 +01:00
ohdearaugustin
04dffcc4ae
Refactor cli commands
2021-07-25 15:14:09 +02:00
ohdearaugustin
48ec51d166
Refactor cmdVersion to cli package
2021-07-25 02:02:05 +02:00
Juan Font Alonso
9ca2ae7fc5
Implemented delete nodes ( #52 )
2021-07-17 00:23:12 +02:00
Juan Font Alonso
0fcd92fcce
Minor fix to help testing
2021-06-05 11:13:28 +02:00
Ward Vandewege
41f6740ddd
Add support for ephemeral nodes via a special type of pre-auth key. Add
...
tests for that feature.
Other fixes: clean up a few typos in comments. Fix a bug that caused the
tests to run four times each. Be more consistent in the use of log
rather than fmt to print errors and notices.
2021-05-22 20:18:29 -04:00
Ward Vandewege
b20b664353
Add a DestroyNamespace command and tests for the Namespace functions.
2021-05-09 11:12:39 -04:00
Juan Font Alonso
8ad366f977
Use JsonOutput in version too
2021-05-08 17:06:36 +02:00
Juan Font Alonso
3b34f715ce
Adding support for JSON-formatted output 1/n
2021-05-08 13:28:22 +02:00
Juan Font
13f809be87
Merge pull request #19 from juanfont/node-cmd-improve
...
List nodes in namespace + register under node command
2021-05-02 23:04:46 +02:00
Juan Font Alonso
45e9001787
Register cmd under node
2021-05-01 20:05:10 +02:00
Juan Font
8198d2f8ed
Merge pull request #18 from cure/add-actions
...
Add a basic CI workflow with github actions
2021-04-30 10:45:11 +02:00
Juan Font Alonso
68c21faf64
Check persistnt flag errors
2021-04-30 09:55:39 +02:00
Ward Vandewege
491fb0adb3
Fix a few linter errors.
2021-04-29 21:14:50 -04:00
Juan Font Alonso
b83318bfb3
Namespace is now a flag for all the commands
2021-04-30 00:23:26 +02:00
Juan Font Alonso
77e5255fdd
Move the CLI functiontionality to the CLI package
2021-04-28 16:15:45 +02:00
Ward Vandewege
f5010fd75b
Add test for our config validation rules.
2021-04-26 20:30:06 -04:00
Ward Vandewege
37601f6b4d
Add a very simple test.
2021-04-26 19:22:28 -04:00
Ward Vandewege
6aedc1111b
Add a Makefile with a few targets. The default is 'build'. The build
...
target calls the new version-at-commit.sh script which will
automatically populate the version variable inside the Headscale binary.
Once we start tagging releases on the git tree, that will come in handy.
The Makefile also has a 'test' target (does nothing yet, no tests yet)
and a 'dev' target, which runs linters, tests, and finally builds.
2021-04-25 10:31:52 -04:00
Ward Vandewege
f7c7b4873a
Address a bunch of golangci-lint warnings.
2021-04-24 11:41:29 -04:00
Ward Vandewege
426b4fd98a
Add support for automatic TLS certificates via Let's Encrypt. Add a
...
configuration reference to the README.md file.
2021-04-23 22:55:01 -04:00
Ward Vandewege
1b30874cf8
Check for errors from the Serve() function.
2021-04-23 17:18:14 -04:00
Ward Vandewege
252c68c50a
Add HTTPS support for the web endpoint with manually configured
...
certificate/key files.
2021-04-23 17:18:00 -04:00
Ward Vandewege
c5a3d0b01c
In absPath, skip empty paths.
2021-04-23 16:42:27 -04:00
Ward Vandewege
683b151f19
If the configuration file contains relative paths (e.g. in the values
...
for private_key_path or derp_map_path), interpret them as relative to
the directory where the config.json file was read from.
2021-04-22 21:10:50 -04:00
Juan Font Alonso
9c40e829ec
Create preauthkeys kinda working (not usable yet)
2021-04-23 00:40:42 +02:00
Juan Font Alonso
176eea4a84
WIP on PreAuthKeys
2021-04-23 00:25:01 +02:00
Ward Vandewege
a71387f9d2
Add additional locations to look for the config.json file:
...
/etc/headscale and $HOME/.headscale
2021-04-21 17:33:09 -04:00
Juan Font Alonso
1fad8e6e5b
Added basic routes functionality
2021-03-14 11:38:42 +01:00
Juan Font Alonso
fc13f74851
Minor output fix & README improvements
2021-02-28 20:29:31 +01:00
Juan Font Alonso
b7655b1f68
Initial multi-user support using namespaces
2021-02-28 00:58:09 +01:00
Juan Font Alonso
b1d06f3ffd
headscale now has a CLI - registration of machines occurs there
2021-02-21 01:30:03 +01:00
Juan Font Alonso
a6100dc4d0
Load DERP servers from file
2021-02-20 23:57:06 +01:00
Juan Font Alonso
1ddb4febe8
Embedding frontend via Pkger
2020-07-04 13:38:58 +02:00
Juan Font Alonso
8187085e39
Added missing cmd
2020-06-21 12:33:43 +02:00