1
0
forked from wrenn/wrenn
This commit is contained in:
2026-04-16 19:24:25 +00:00
parent 172413e91e
commit 605ad666a0
239 changed files with 19966 additions and 3454 deletions

View File

@ -8,7 +8,7 @@
# Option 2: Use dnsmasq: address=/.localhost/127.0.0.1
# Option 3: Use systemd-resolved (Ubuntu default — *.localhost resolves to 127.0.0.1)
http://*.localhost {
reverse_proxy host.docker.internal:8080
reverse_proxy host.docker.internal:9725
}
# Main entry point: API + frontend
@ -16,21 +16,21 @@ http://localhost {
# API routes — strip /api prefix and proxy to the control plane.
# The frontend calls /api/v1/... which becomes /v1/... at the CP.
handle_path /api/* {
reverse_proxy host.docker.internal:8080
reverse_proxy host.docker.internal:9725
}
# Backend routes served directly (SDK clients, OAuth initiation)
handle /v1/* {
reverse_proxy host.docker.internal:8080
reverse_proxy host.docker.internal:9725
}
handle /openapi.yaml {
reverse_proxy host.docker.internal:8080
reverse_proxy host.docker.internal:9725
}
handle /docs {
reverse_proxy host.docker.internal:8080
reverse_proxy host.docker.internal:9725
}
handle /auth/oauth/* {
reverse_proxy host.docker.internal:8080
reverse_proxy host.docker.internal:9725
}
# Everything else — proxy to the frontend dev server

19
deploy/logrotate/wrenn Normal file
View File

@ -0,0 +1,19 @@
/var/lib/wrenn/logs/control-plane.log
/var/lib/wrenn/logs/host-agent.log
{
daily
rotate 3
missingok
notifempty
dateext
dateformat -%Y-%m-%d
compress
delaycompress
sharedscripts
postrotate
# Signal the processes to reopen their log files.
# Use SIGHUP — both binaries handle it gracefully.
pkill -HUP -f wrenn-cp || true
pkill -HUP -f wrenn-agent || true
endscript
}