Spawnpool
The 'spawner' application for Zerg demo
Install / Use
/learn @maximk/SpawnpoolREADME
The spawn pool for Zerg demo
This application is an integral part of Zerg demo. It gets initial connection from nginx, spawns a new 'zergling' instance (see https://github.com/maximk/zergling), and instructs nginx to proxy the client connection to the newly spawned instance.
How to setup nginx
nginx configuration file must have a block similar to this:
server {
listen 80;
server_name zerg.yourdomain.com;
# Suppress spawning a second instance just to return 404
#
location /favicon.ico {
return 404;
}
# A catapult location to bypass X-Accel-Redirect limitation
#
location ~* ^/internal_redirect/(.*?)/(.*?)/(.*) {
internal;
set $redirect_host $1;
set $redirect_port $2;
set $redirect_uri $3;
set $redirect_to http://$redirect_host:$redirect_port/$redirect_uri;
proxy_pass $redirect_to;
}
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
# Put location of your 'spawningpool' application here
#
proxy_pass http://localhost:9001;
}
}
How to run the application
The application recorgizes the following command-line flags:
- -gator the IP address (and port) of the Dom0 running gatord. Defaults to
- "127.0.0.1:4287".
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
