mirror of
https://github.com/juanfont/headscale.git
synced 2025-05-09 01:20:34 +02:00
Prefer the console lexer when commandline and output mixed
This commit is contained in:
parent
643b55b398
commit
20e2f7806d
@ -76,14 +76,14 @@ hostname and port combination "http://hostname-in-magic-dns.myvpn.example.com:30
|
|||||||
|
|
||||||
=== "Query with dig"
|
=== "Query with dig"
|
||||||
|
|
||||||
```shell
|
```console
|
||||||
dig +short grafana.myvpn.example.com
|
dig +short grafana.myvpn.example.com
|
||||||
100.64.0.3
|
100.64.0.3
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "Query with drill"
|
=== "Query with drill"
|
||||||
|
|
||||||
```shell
|
```console
|
||||||
drill -Q grafana.myvpn.example.com
|
drill -Q grafana.myvpn.example.com
|
||||||
100.64.0.3
|
100.64.0.3
|
||||||
```
|
```
|
||||||
|
@ -52,7 +52,7 @@ If you want to validate that certificate renewal completed successfully, this ca
|
|||||||
1. Open the URL for your headscale server in your browser of choice, and manually inspecting the expiry date of the certificate you receive.
|
1. Open the URL for your headscale server in your browser of choice, and manually inspecting the expiry date of the certificate you receive.
|
||||||
2. Or, check remotely from CLI using `openssl`:
|
2. Or, check remotely from CLI using `openssl`:
|
||||||
|
|
||||||
```bash
|
```console
|
||||||
$ openssl s_client -servername [hostname] -connect [hostname]:443 | openssl x509 -noout -dates
|
$ openssl s_client -servername [hostname] -connect [hostname]:443 | openssl x509 -noout -dates
|
||||||
(...)
|
(...)
|
||||||
notBefore=Feb 8 09:48:26 2024 GMT
|
notBefore=Feb 8 09:48:26 2024 GMT
|
||||||
|
@ -140,13 +140,13 @@ Additionally, the debug container includes a minimalist Busybox shell.
|
|||||||
|
|
||||||
To launch a shell in the container, use:
|
To launch a shell in the container, use:
|
||||||
|
|
||||||
```
|
```shell
|
||||||
docker run -it headscale/headscale:x.x.x-debug sh
|
docker run -it headscale/headscale:x.x.x-debug sh
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also execute commands directly, such as `ls /ko-app` in this example:
|
You can also execute commands directly, such as `ls /ko-app` in this example:
|
||||||
|
|
||||||
```
|
```shell
|
||||||
docker run headscale/headscale:x.x.x-debug ls /ko-app
|
docker run headscale/headscale:x.x.x-debug ls /ko-app
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user