|
| 1 | +# yaml-language-server: $schema=../schema/schema.json |
| 2 | + |
| 3 | +# Note that this example uses YAML custom tags for environment variable substitution. |
| 4 | +# Using `!env [variable name]` will substitute the value of the environment variable named |
| 5 | +# [variable name]. |
| 6 | +# |
| 7 | +# Only environment variables with names starting with `PS_` can be substituted. |
| 8 | +# |
| 9 | +# e.g. With the environment variable `export PS_MONGO_URI=mongodb://localhost:27017` |
| 10 | +# and YAML code: |
| 11 | +# uri: !env PS_MONGO_URI |
| 12 | +# The YAML will resolve to: |
| 13 | +# uri: mongodb://localhost:27017 |
| 14 | +# |
| 15 | +# If using VS Code see the `.vscode/settings.json` definitions which define custom tags. |
| 16 | + |
| 17 | +# migrations: |
| 18 | +# # Migrations run automatically by default. |
| 19 | +# # Setting this to true will skip automatic migrations. |
| 20 | +# # Migrations can be triggered externally by altering the container `command`. |
| 21 | +# disable_auto_migration: true |
| 22 | + |
| 23 | +# Settings for telemetry reporting |
| 24 | +# See https://docs.powersync.com/self-hosting/telemetry |
| 25 | +telemetry: |
| 26 | + # Opt out of reporting anonymized usage metrics to PowerSync telemetry service |
| 27 | + disable_telemetry_sharing: false |
| 28 | + |
| 29 | +# Settings for source database replication |
| 30 | +replication: |
| 31 | + # Specify database connection details |
| 32 | + # Note only 1 connection is currently supported |
| 33 | + # Multiple connection support is on the roadmap |
| 34 | + connections: |
| 35 | + - type: postgresql |
| 36 | + # The PowerSync server container can access the Postgres DB via the DB's service name. |
| 37 | + # In this case the hostname is pg-db |
| 38 | + |
| 39 | + uri: !env PS_DATA_SOURCE_URI |
| 40 | + # SSL settings |
| 41 | + sslmode: disable # 'verify-full' (default) or 'verify-ca' or 'disable' |
| 42 | + |
| 43 | +# Connection settings for sync bucket storage |
| 44 | +storage: |
| 45 | + type: postgresql |
| 46 | + # This accepts the same parameters as a postgres data source connection |
| 47 | + uri: !env PS_STORAGE_SOURCE_URI |
| 48 | + sslmode: disable # 'verify-full' (default) or 'verify-ca' or 'disable' |
| 49 | + |
| 50 | +# The port which the PowerSync API server will listen on |
| 51 | +port: !env PS_PORT |
| 52 | + |
| 53 | +# Specify sync rules |
| 54 | +sync_rules: |
| 55 | + path: sync_rules.yaml |
| 56 | + |
| 57 | +# Client (application end user) authentication settings |
| 58 | +client_auth: |
| 59 | + # JWKS URIs can be specified here |
| 60 | + jwks_uri: !env PS_JWKS_URL |
| 61 | + |
| 62 | + # JWKS audience |
| 63 | + audience: ["powersync-dev", "powersync"] |
| 64 | + |
| 65 | +api: |
| 66 | + tokens: |
| 67 | + # These tokens are used for local admin API route authentication |
| 68 | + - use_a_better_token_in_production |
0 commit comments