mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-03-21 22:56:47 +00:00
* Standalone on ubuntu * fix: use port 3043 for Caddy, disable rooms, remove dead Caddyfile - Caddy mapped to host port 3043 instead of 80/443 to avoid conflicts - FEATURE_ROOMS=false in standalone web service - Removed scripts/standalone/Caddyfile (dead code on this branch) - Updated all URLs, port checks, docs to reference :3043 --------- Co-authored-by: Igor Loskutov <igor.loskutoff@gmail.com>
43 lines
1.2 KiB
Caddyfile
43 lines
1.2 KiB
Caddyfile
# Reflector standalone — HTTPS via Caddy (droplet / IP access)
|
|
# Copy to Caddyfile: cp Caddyfile.standalone.example Caddyfile
|
|
# Run: docker compose -f docker-compose.standalone.yml --profile ollama-cpu up -d
|
|
#
|
|
# :443 = catch-all inside container; Docker maps host port 3043 → container 443
|
|
# on_demand = generate self-signed cert for IP/SNI on first request (required for bare IP access)
|
|
# Browser will warn. Click Advanced → Proceed.
|
|
# Access at https://localhost:3043 (or https://YOUR_IP:3043 on droplet)
|
|
# Update www/.env.local with: API_URL=https://YOUR_IP:3043, WEBSOCKET_URL=wss://YOUR_IP:3043, SITE_URL=https://YOUR_IP:3043, NEXTAUTH_URL=https://YOUR_IP:3043
|
|
|
|
:443 {
|
|
tls internal {
|
|
on_demand
|
|
}
|
|
handle /v1/* {
|
|
reverse_proxy server:1250
|
|
}
|
|
handle /health {
|
|
reverse_proxy server:1250
|
|
}
|
|
handle {
|
|
reverse_proxy web:3000
|
|
}
|
|
}
|
|
|
|
# Option B: localhost (comment Option A, uncomment this)
|
|
# app.localhost {
|
|
# tls internal
|
|
# reverse_proxy web:3000
|
|
# }
|
|
# api.localhost {
|
|
# tls internal
|
|
# reverse_proxy server:1250
|
|
# }
|
|
|
|
# Option C: Real domain (uncomment and replace example.com)
|
|
# app.example.com {
|
|
# reverse_proxy web:3000
|
|
# }
|
|
# api.example.com {
|
|
# reverse_proxy server:1250
|
|
# }
|