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>
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# 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 |