feat(crumbforest): wire up docs, missions, and history indexer

This commit is contained in:
2025-12-27 15:17:58 +01:00
parent 64f568d5bc
commit b9f49c170c
6 changed files with 326 additions and 3 deletions

View File

@@ -17,10 +17,14 @@ location / {
proxy_send_timeout 60s;
proxy_read_timeout 300s;
# Buffering
# Connection Management
proxy_set_header Connection "";
# Buffering (Increased for large Cookie Headers)
proxy_buffering on;
proxy_buffer_size 4k;
proxy_buffers 8 4k;
proxy_buffer_size 16k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
}
# WebSocket support for chat
@@ -56,6 +60,14 @@ location /api/docs {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# CrumbBlocks (Blockly Missions)
location /crumblocks/ {
alias /home/crumbmission/missions/;
autoindex on;
expires 1h;
add_header Cache-Control "public";
}
# Terminal (TTYD)
location /terminal/ {
# Basic-Auth (Uncomment if /etc/nginx/.htpasswd exists)

View File

@@ -41,6 +41,10 @@ else
print_info "User created: $USER_NAME"
fi
# 2b. Add to crumbforest group for log access
print_info "Granting log access..."
usermod -aG crumbforest "$USER_NAME" || print_error "Could not add to crumbforest group"
# 3. Clone Repository
print_info "Setting up missions repo..."
if [ ! -d "$HOME_DIR/missions" ]; then
@@ -71,6 +75,7 @@ echo "📜 Mission: Lerne das System kennen."
echo "Tipp: Schau dir den Ordner 'missions' an."
PS1='\[\033[01;32m\]\u@crumbforest\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
alias ll='ls -alF'
alias bugsy='tail -f /var/log/crumbforest/chat_history.jsonl'
EOF
fi