mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Update documentation and configuration for production deployment
- Fix documentation drift across README, AGENTS.md, and CONTRIBUTING.md - Update Docker configuration with process timing and OAuth env vars - Simplify shared env config by removing unused Redis and OpenCode API URL - Add skills documentation to navigation - Improve .env.example with clearer AUTH_SECRET instructions
This commit is contained in:
1 parent
1e8b302de7
commit
fcfab08b0e
12 files changed
+131
-46
No files matched your search
@@ -53,7 +53,6 @@ export const ENV = {
|
||||
OPENCODE: {
|
||||
PORT: getEnvNumber('OPENCODE_SERVER_PORT', DEFAULTS.OPENCODE.PORT),
|
||||
HOST: getEnvString('OPENCODE_HOST', DEFAULTS.OPENCODE.HOST),
|
||||
API_URL: process.env.OPENCODE_MANAGER_API_URL ?? `http://127.0.0.1:${DEFAULTS.SERVER.PORT}`,
|
||||
},
|
||||
|
||||
DATABASE: {
|
||||
@@ -108,22 +107,12 @@ export const ENV = {
|
||||
PASSKEY_ORIGIN: getEnvString('PASSKEY_ORIGIN', 'http://localhost:5003'),
|
||||
},
|
||||
|
||||
REDIS: {
|
||||
URL: getEnvString('REDIS_URL', ''),
|
||||
PASSWORD: process.env.REDIS_PASSWORD ?? '',
|
||||
DB: getEnvNumber('REDIS_DB', 0),
|
||||
},
|
||||
} as const
|
||||
|
||||
export const getWorkspacePath = () => ENV.WORKSPACE.BASE_PATH
|
||||
export const getReposPath = () => path.join(ENV.WORKSPACE.BASE_PATH, ENV.WORKSPACE.REPOS_DIR)
|
||||
export const getConfigPath = () => path.join(ENV.WORKSPACE.BASE_PATH, ENV.WORKSPACE.CONFIG_DIR)
|
||||
export const getOpenCodeConfigFilePath = () => path.join(ENV.WORKSPACE.BASE_PATH, ENV.WORKSPACE.CONFIG_DIR, 'opencode.json')
|
||||
export const getPluginSourcePath = () => {
|
||||
const envPath = process.env.OPENCODE_PLUGIN_PATH
|
||||
if (envPath) return path.resolve(envPath)
|
||||
return path.resolve('packages/memory/src/index.ts')
|
||||
}
|
||||
export const getAgentsMdPath = () => path.join(ENV.WORKSPACE.BASE_PATH, ENV.WORKSPACE.CONFIG_DIR, 'AGENTS.md')
|
||||
export const getAuthPath = () => path.join(ENV.WORKSPACE.BASE_PATH, ENV.WORKSPACE.AUTH_FILE)
|
||||
export const getDatabasePath = () => ENV.DATABASE.PATH
|
||||
|
||||
Reference in new issue
Block a user