feat: initial server side systems
This commit is contained in:
parent
48fc0f7ef3
commit
cbbd64e91a
8 changed files with 690 additions and 0 deletions
19
app/server/README.md
Normal file
19
app/server/README.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Headplane Server
|
||||
This code is responsible for all code that is necessary *before* any
|
||||
web server is started. It is the only part of the code that contains
|
||||
many side-effects (in this case, importing a module may run code).
|
||||
|
||||
# Hierarchy
|
||||
```
|
||||
server
|
||||
├── index.ts: Loads everything and starts the web server.
|
||||
├── config/
|
||||
│ ├── env.ts: Checks the environment variables for custom overrides.
|
||||
│ ├── loader.ts: Checks the configuration file and coalesces with ENV.
|
||||
│ ├── schema.ts: Defines the schema for the Headplane configuration.
|
||||
├── headscale/
|
||||
│ ├── api-client.ts: Creates the HTTP client that talks to the Headscale API.
|
||||
│ ├── config.ts: Loads the Headscale configuration (if available).
|
||||
├── web/
|
||||
│ ├── oidc.ts: Loads and validates an OIDC configuration (if available).
|
||||
│ ├── sessions.ts: Initializes the session store and methods to manage it.
|
||||
Loading…
Add table
Add a link
Reference in a new issue