Add Caddy authentication and Claude Matrix user setup
- Created caddyfile-docs-update.txt with Caddy basic auth configuration - Fixed documentation path from /home/klas/langmem-docs to /home/klas/langmem/docs - Added basic auth with credentials: langmem / langmem2025 - Created create-claude-matrix-user.md with user creation instructions - Added get-claude-token.py script for automated Matrix setup - Includes token retrieval, room joining, and configuration export Manual steps required: 1. Update /etc/caddy/Caddyfile with new docs.klas.chat config 2. Reload Caddy: sudo systemctl reload caddy 3. Create Claude Matrix user via admin panel 4. Run get-claude-token.py to complete setup 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
47
create-claude-matrix-user.md
Normal file
47
create-claude-matrix-user.md
Normal file
@@ -0,0 +1,47 @@
|
||||
# Creating Claude Matrix User
|
||||
|
||||
Since Matrix registration is disabled, you'll need to create the Claude user manually using admin tools.
|
||||
|
||||
## Option 1: Synapse Admin Panel
|
||||
|
||||
1. **Access Synapse Admin**: https://synapse.klas.chat/admin
|
||||
2. **Login with admin credentials**
|
||||
3. **Go to Users section**
|
||||
4. **Create new user:**
|
||||
- **Username**: `claude`
|
||||
- **Password**: `claude_assistant_2025`
|
||||
- **Display Name**: `Claude Assistant`
|
||||
- **Admin**: `No`
|
||||
|
||||
## Option 2: Command Line (if you have access to Synapse container)
|
||||
|
||||
```bash
|
||||
# Access synapse container
|
||||
docker exec -it synapse /bin/bash
|
||||
|
||||
# Create user using register_new_matrix_user
|
||||
register_new_matrix_user -u claude -p claude_assistant_2025 -c /data/homeserver.yaml https://matrix.klas.chat
|
||||
```
|
||||
|
||||
## Option 3: Database Direct (if needed)
|
||||
|
||||
```sql
|
||||
-- Connect to Matrix database and insert user manually
|
||||
-- This requires knowledge of your Matrix database structure
|
||||
```
|
||||
|
||||
## After Creating the User
|
||||
|
||||
1. **Get access token** for the claude user
|
||||
2. **Join Home Assistant room** using the new account
|
||||
3. **Update Claude's global configuration** with new credentials
|
||||
|
||||
## Next Steps
|
||||
|
||||
Once you've created the Claude user, I'll:
|
||||
1. Get the access token
|
||||
2. Join the Home Assistant room
|
||||
3. Update my global Matrix configuration
|
||||
4. Test sending messages as the Claude user
|
||||
|
||||
Let me know when the user is created!
|
||||
Reference in New Issue
Block a user