Clean and organize project structure
Major reorganization: - Created scripts/ directory for all utility scripts - Created config/ directory for configuration files - Moved all test files to tests/ directory - Updated all script paths to work with new structure - Updated README.md with new project structure diagram New structure: ├── src/ # Source code (API + MCP) ├── scripts/ # Utility scripts (start-*.sh, docs_server.py, etc.) ├── tests/ # All test files and debug utilities ├── config/ # Configuration files (JSON, Caddy config) ├── docs/ # Documentation website └── logs/ # Log files All scripts updated to use relative paths from project root. Documentation updated with new folder structure. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
40
config/caddyfile-docs-update.txt
Normal file
40
config/caddyfile-docs-update.txt
Normal file
@@ -0,0 +1,40 @@
|
||||
# Updated docs.klas.chat configuration with authentication
|
||||
# Replace the existing docs.klas.chat block in /etc/caddy/Caddyfile with this:
|
||||
|
||||
docs.klas.chat {
|
||||
tls /certs/klas.chat/fullchain.cer /certs/klas.chat/klas.chat.key
|
||||
|
||||
# Basic Authentication
|
||||
basicauth * {
|
||||
langmem $2a$14$.1fx02QwkkmfezhZMLE4Iu2N/ub5vwDSAtcH9lAa5z11ChjiYy1PG
|
||||
}
|
||||
|
||||
# Security headers
|
||||
header {
|
||||
X-Frame-Options "DENY"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-XSS-Protection "1; mode=block"
|
||||
Referrer-Policy "strict-origin-when-cross-origin"
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; img-src 'self' data: https:; font-src 'self' data:;"
|
||||
}
|
||||
|
||||
# Static file serving - UPDATED PATH
|
||||
root * /home/klas/langmem/docs
|
||||
file_server
|
||||
|
||||
# SPA routing fallback for clean URLs
|
||||
try_files {path} {path}/ /index.html
|
||||
|
||||
# Enable compression
|
||||
encode gzip
|
||||
|
||||
# Cache static assets
|
||||
@static {
|
||||
path *.css *.js *.png *.jpg *.jpeg *.gif *.svg *.ico *.woff *.woff2
|
||||
}
|
||||
|
||||
header @static Cache-Control "public, max-age=31536000, immutable"
|
||||
}
|
||||
|
||||
# Credentials: langmem / langmem2025
|
||||
10
config/claude-matrix-config.json
Normal file
10
config/claude-matrix-config.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"matrix_homeserver": "https://matrix.klas.chat",
|
||||
"claude_user_id": "@claude:matrix.klas.chat",
|
||||
"claude_access_token": "syt_Y2xhdWRl_CoBgPoHbtMOxhvOUcMnz_2WRPZJ",
|
||||
"home_assistant_room_id": "!xZkScMybPseErYMJDz:matrix.klas.chat",
|
||||
"credentials": {
|
||||
"username": "claude",
|
||||
"password": "claude_assistant_2025"
|
||||
}
|
||||
}
|
||||
13
config/mcp_config.json
Normal file
13
config/mcp_config.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"mcpServers": {
|
||||
"langmem": {
|
||||
"command": "python",
|
||||
"args": ["/home/klas/langmem-project/src/mcp/server.py"],
|
||||
"cwd": "/home/klas/langmem-project",
|
||||
"env": {
|
||||
"LANGMEM_API_URL": "http://localhost:8765",
|
||||
"LANGMEM_API_KEY": "langmem_api_key_2025"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user