mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
section 16: Phase 16: Documentation, container ports and full repository checks
This commit is contained in:
1 parent
81a9f0c8ef
commit
a383e57bc5
55 files changed
+4095
-59
No files matched your search
@@ -40,6 +40,7 @@ services:
|
||||
container_name: opencode-manager
|
||||
ports:
|
||||
- "5003:5003"
|
||||
- "5004:5004"
|
||||
- "5100:5100"
|
||||
- "5101:5101"
|
||||
- "5102:5102"
|
||||
@@ -157,7 +158,14 @@ ports:
|
||||
|
||||
### Dev Server Ports
|
||||
|
||||
Ports 5100-5103 are exposed for running dev servers inside repositories:
|
||||
Port 5004 is the [preview gateway](../features/preview.md). It proxies a running dev server through an authenticated origin and supports HMR, so it is the recommended way to view a dev server:
|
||||
|
||||
```yaml
|
||||
ports:
|
||||
- "5004:5004"
|
||||
```
|
||||
|
||||
Ports 5100-5103 remain exposed for running dev servers inside repositories and reaching them directly:
|
||||
|
||||
```yaml
|
||||
ports:
|
||||
@@ -167,6 +175,8 @@ ports:
|
||||
- "5103:5103"
|
||||
```
|
||||
|
||||
Exposing these raw ports bypasses the preview gateway's authentication and same-origin isolation. Prefer the gateway unless you need direct access to a dev server.
|
||||
|
||||
Configure your dev server to use one of these ports:
|
||||
|
||||
=== "Vite"
|
||||
|
||||
@@ -76,6 +76,15 @@ When configured, users can enable push notifications in Settings → Notificatio
|
||||
| `LOG_LEVEL` | Accepted but currently unused; debug output is controlled by `DEBUG` | `info` |
|
||||
| `DEBUG` | Enable debug logging | `false` |
|
||||
|
||||
## Preview Gateway
|
||||
|
||||
The preview gateway serves dev servers through an authenticated, separate origin (see [Preview](../features/preview.md)).
|
||||
|
||||
| Variable | Description | Default |
|
||||
|----------|-------------|---------|
|
||||
| `PREVIEW_PORT` | Port for the preview gateway. Set to `0` to disable preview entirely. | `5004` |
|
||||
| `PREVIEW_PUBLIC_URL` | Same-site HTTPS origin that proxies the preview gateway. Set this when the Manager is served over HTTPS or behind a reverse proxy, where mixed content and third-party cookies otherwise block the preview iframe. | empty |
|
||||
|
||||
## Database
|
||||
|
||||
| Variable | Description | Default |
|
||||
|
||||
Reference in new issue
Block a user