Docs - fixing debugging, adding token notes

This commit is contained in:
silversword411 2022-05-12 02:05:52 -04:00
parent 0dab6de02d
commit 50bbfafcb9
No known key found for this signature in database
GPG Key ID: 6F4BD176F56B50CA
6 changed files with 34 additions and 6 deletions

View File

@ -1,4 +1,10 @@
Youtube video about websockets: https://youtu.be/3vI4URd3VzU
## Websockets Video
<div class="video-wrapper">
<iframe width="320" height="180" src="https://www.youtube.com/embed/3vI4URd3VzU" frameborder="0" allowfullscreen></iframe>
</div>
## Enabling trace in your browser Dev Tools
`Trace=1` as a parameter in chrome dev tools for debugging
@ -26,7 +32,7 @@ If you want to change node to meshcentral in journalctl, add this to /etc/system
SyslogIdentifier=meshcentral
```
## Logging it all
## Server: Logging it all
To log everything that's possible, prepare the log directory.
@ -89,6 +95,8 @@ obj.fs.writeSync(obj.xxLogFile, new Date().toLocaleTimeString() + ' - ' + source
`log.txt` will now log everything in the Trace tab, but not formatted as nice.
## Restricting server to specific IP(s)
When doing debugging on my development server, I use this line in the settings section to block all agent connections except the agent I want:
```
@ -97,9 +105,10 @@ When doing debugging on my development server, I use this line in the settings s
Of course, this is just for debugging.
## Finding system ID types
<https://serverurl/meshagents>
<https://serverurl/meshagents> aka trying figure out what this is
![ID](images/determine-id.png)
## General server statistics related

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

View File

@ -0,0 +1,15 @@
# 14.1 Tokens
## User Tokens
![User Tokens 1](images/user_tokens1.png)
![User Tokens 2](images/user_tokens2.png)
## Software Integration Tokens
Currently, the login tokens in the user manual section 14.1 can't be tracked, deleted or revoked. They are generated with:
```bash
node meshcentral --loginTokenKey
```

View File

@ -6,7 +6,10 @@ nav:
- install/index.md
- MeshCentral:
- meshcentral/index.md
- 'Index': 'meshcentral/index.md'
- 'Tokens': 'meshcentral/tokens.md'
- 'Assistant': 'meshcentral/assistant.md'
- 'Debugging': 'meshcentral/debugging.md'
- Design and Architecture:
- design/index.md
@ -27,7 +30,7 @@ site_description: "A remote monitoring and management tool"
site_author: "Ylianst"
site_url: "https://git.meshcentral.com/"
dev_addr: "0.0.0.0:8006"
dev_addr: "0.0.0.0:8010"
# Repository
repo_name: "Ylianst/MeshCentral"
@ -46,6 +49,7 @@ theme:
- navigation.tabs
- navigation.expand
- navigation.top
- navigation.instant
- toc.integrate
extra_css:
- stylesheets/extra.css