Loading...
Loading...
Configure Serverpod — YAML config, environment variables, passwords, run modes, generator.yaml, TLS. Use when setting up environments, API/database/Redis settings, managing secrets or overriding configurations for tests.
npx skill4agent add serverpod/serverpod serverpod-configurationconfig/config/passwords.yamlSERVERPOD_PASSWORD_config/development.yamlconfig/staging.yamlconfig/production.yamlconfig/test.yaml--modeSERVERPOD_RUN_MODEdevelopmentapiServer:
port: 8080
publicHost: localhost
publicPort: 8080
publicScheme: httppublicHostpublicPortpublicSchemedatabase:
host: localhost
port: 8090
name: my_project
user: postgres
dataPath: .serverpod/development/pgdata # embedded database, see belowpasswords.yamlSERVERPOD_PASSWORD_databasesearchPathsmaxConnectionCountrequireSslisUnixSocketdataPathserverpod database start [--mode <mode>] [--port <port>]dataPathserverpod start--docker--no-dockerdatabase:
filePath: my_project.sqliteredis.enabledredis.hostredis.portSERVERPOD_PASSWORD_redisshared:development:production:databaseredisserviceSecretsession.passwords['key']pod.getPassword('key')SERVERPOD_DATABASE_PASSWORDSERVERPOD_REDIS_PASSWORDSERVERPOD_SERVICE_SECRETSERVERPOD_PASSWORD_export SERVERPOD_PASSWORD_stripeApiKey=sk_live_... # → session.passwords['stripeApiKey']config/generator.yamltypeservermoduleinternalclient_package_pathmodulesnicknameserver_test_tools_pathextraClassesfeaturesdatabase: true/falseconfig: ServerpodConfig(...)Serverpod(...)configOverride: (config) => config.copyWith(...)SecurityContextConfigServerpod(...)SecurityContextapiServerwebServerinsightsServerSecurityContextClient(...)references/environment-variables.mdSERVERPOD_*references/flutter-apps.mdserverpod start