Skip to content

Instantly share code, notes, and snippets.

Endpoints:

  1. Issue Token:
    • Endpoint: /api/tokens
    • Method: POST
    • Payload:
      {
        "client_id": "example-client-id"
      }
@tbaums
tbaums / sample_server_api_docs.md
Last active August 17, 2023 17:49
chatgpt for rust docs?

Endpoint: /api/client

Overview

The /api/client endpoint offers an interface for provisioning new clients within the system.

Request Type:

@tbaums
tbaums / gist:0c20ddcf71485e15f0f06c6e0bf3329d
Last active November 18, 2023 19:40
demo-config.toml
[node]
display_name = "device1"
storage_path = "client.sqlite"
unique_id = "device1"
# MYCELIAL SERVER
# Replace with the endpoint and token for your Sqlite Physical Replication Server
[server]
endpoint = "http://0.0.0.0:7777" # Default Sqlite Physical Replication Server endpoint
token = "token" # Default token for Sqlite Physical Replication Server and Clients
@tbaums
tbaums / config.toml
Created November 18, 2023 23:12
agent toml
[node]
display_name = "device-HOSTNAME"
storage_path = "client.sqlite"
unique_id = "HOSTNAME"
# MYCELIAL SERVER
# Replace with the endpoint and token for your Sqlite Physical Replication Server
[server]
endpoint = "http://SERVERIP:7777" # Default Sqlite Physical Replication Server endpoint
token = "token" # Default token for Sqlite Physical Replication Server and Clients
@tbaums
tbaums / node.yaml
Created December 14, 2023 21:57
node yaml example
apiVersion: v1
kind: Node
metadata:
name: node-example
labels:
disktype: ssd
spec:
podCIDR: 192.168.0.0/24
providerID: "provider-id"
status: