Skip to content

Commit c0e069f

Browse files
committed
Polish the yaml templates
1 parent 80560f9 commit c0e069f

File tree

2 files changed

+104
-157
lines changed

2 files changed

+104
-157
lines changed

cli/templates/cloud/powersync/service.yaml

Lines changed: 36 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# -----------------------------------------------------------------------------
88

99
_type: cloud
10-
name: My instance
10+
name: my-cli-instance
1111

1212
# region (required): deployment region, e.g. us
1313
# Note: This cannot be changed after the initial deployment
@@ -26,124 +26,104 @@ region: us
2626
# replication:
2727
# connections:
2828
# - type: postgresql
29+
# # Connection string (recommended). Omit and use hostname/port/database/username/password instead if you prefer.
2930
# # [optional]
30-
# uri: string
31+
# uri: postgresql://user:pass@host:5432/dbname
3132
# password:
3233
# secret: !env POWERSYNC_DATABASE_PASSWORD
33-
# # [optional]
34+
# # [optional] Alternative to uri: individual connection parameters.
3435
# hostname: example.com
35-
# # [optional]
36+
# port: 5432
3637
# database: one
37-
# # [optional]
3838
# username: postgres
39-
# # [optional]
40-
# port: 5432
41-
# # [optional]
39+
# # [optional] Connection identifiers.
4240
# name: string
43-
# # [optional]
4441
# id: string
45-
# # [optional]
4642
# tag: string
47-
# # [optional] Options: verify-full | verify-ca
43+
# # [optional] TLS mode. Options: verify-full | verify-ca. Default: verify-full. Use verify-full for production.
4844
# sslmode: verify-full
49-
# # [optional]
45+
# # [optional] TLS certificates (PEM). Required for verify-ca; optional for verify-full.
5046
# cacert: string
51-
# # [optional]
5247
# client_certificate: string
53-
# # [optional]
5448
# client_private_key:
5549
# secret: !env POWERSYNC_DATABASE_CLIENT_KEY
56-
# # [optional]
50+
# # [optional] Cloud VPC endpoint hostname.
5751
# vpc_endpoint_hostname: string
5852

5953
# -------------------------------------------------------------------------
60-
# MongoDB – uncomment this entire block to use (comment out PostgreSQL above)
54+
# MongoDB – uncomment this entire block to use (comment out PostgreSQL above).
6155
# uri is required for MongoDB; other fields are optional.
6256
# -------------------------------------------------------------------------
6357
# replication:
6458
# connections:
6559
# - type: mongodb
60+
# # Connection string (required for MongoDB).
6661
# uri: mongodb+srv://user:pass@host/db
6762
# password:
6863
# secret: !env POWERSYNC_MONGODB_PASSWORD
69-
# # [optional]
64+
# # [optional] Connection parameters (if not in URI).
65+
# username: string
66+
# database: string
67+
# # [optional] Connection identifiers.
7068
# name: string
71-
# # [optional]
7269
# id: string
73-
# # [optional]
7470
# tag: string
75-
# # [optional]
76-
# username: string
77-
# # [optional]
78-
# database: string
79-
# # [optional] Options: off | auto_configure | read_only
71+
# # [optional] Change-data-capture mode. Options: off | auto_configure | read_only. Default: off.
8072
# post_images: off
81-
# # [optional]
73+
# # [optional] Cloud VPC endpoint hostname.
8274
# vpc_endpoint_hostname: string
8375

8476
# -------------------------------------------------------------------------
85-
# MySQL – uncomment this entire block to use (comment out PostgreSQL above)
77+
# MySQL – uncomment this entire block to use (comment out PostgreSQL above).
8678
# -------------------------------------------------------------------------
8779
# replication:
8880
# connections:
8981
# - type: mysql
90-
# # [optional]
82+
# # [optional] Connection string. Omit and use hostname/port/database/username/password instead if you prefer.
9183
# uri: string
9284
# password:
9385
# secret: !env POWERSYNC_MYSQL_PASSWORD
94-
# # [optional]
86+
# # [optional] Alternative to uri: individual connection parameters.
9587
# hostname: db.example.com
96-
# # [optional]
9788
# port: 3306
98-
# # [optional]
9989
# database: mydb
100-
# # [optional]
10190
# username: sync
102-
# # [optional]
91+
# # [optional] Connection identifiers.
10392
# name: string
104-
# # [optional]
10593
# id: string
106-
# # [optional]
10794
# tag: string
108-
# # [optional]
95+
# # [optional] TLS client certificate and key (PEM).
10996
# client_certificate: string
110-
# # [optional]
11197
# client_private_key:
11298
# secret: !env POWERSYNC_MYSQL_CLIENT_KEY
11399

114100
# -------------------------------------------------------------------------
115-
# MSSQL – uncomment this entire block to use (comment out PostgreSQL above)
101+
# MSSQL – uncomment this entire block to use (comment out PostgreSQL above).
116102
# -------------------------------------------------------------------------
117103
# replication:
118104
# connections:
119105
# - type: mssql
120-
# # [optional]
106+
# # [optional] Connection string. Omit and use hostname/port/database/schema/username/password instead if you prefer.
121107
# uri: string
122108
# password:
123109
# secret: !env POWERSYNC_MSSQL_PASSWORD
124-
# # [optional]
110+
# # [optional] Alternative to uri: individual connection parameters.
125111
# hostname: sql.example.com
126-
# # [optional]
127112
# port: 1433
128-
# # [optional]
129113
# database: mydb
130-
# # [optional]
131114
# schema: dbo
132-
# # [optional]
133115
# username: sync
134-
# # [optional]
116+
# # [optional] Connection identifiers.
135117
# name: string
136-
# # [optional]
137118
# id: string
138-
# # [optional]
139119
# tag: string
140-
# # [optional] Options: default | azure-active-directory-password | azure-active-directory-service-principal-secret
120+
# # [optional] Auth type. Options: default | azure-active-directory-password | azure-active-directory-service-principal-secret.
141121
# authentication:
142122
# type: default
143123
# options:
144124
# password:
145125
# secret: !env POWERSYNC_MSSQL_PASSWORD
146-
# # [optional]
126+
# # [optional] Polling and TLS options.
147127
# additionalConfig:
148128
# pollingIntervalMs: 5000
149129
# pollingBatchSize: 1000
@@ -153,23 +133,14 @@ region: us
153133
# CLIENT AUTH (optional) – uncomment this entire block to enable
154134
# -----------------------------------------------------------------------------
155135
# client_auth:
156-
157-
# # [optional] PowerSync will use the same JWT secret as Supabase.
136+
# # [optional] Use the same JWT secret as Supabase. Default: false.
158137
# supabase: false
159-
160-
# # [optional] Legacy: If your Supabase project does not use the new JWT signing keys, you must provide your project's legacy JWT secret to use Supabase Auth. Get it from your project's API settings in the Supabase Dashboard.
138+
# # [optional] Legacy: provide your Supabase project's legacy JWT secret from API settings in the Supabase Dashboard if not using new JWT signing keys.
161139
# supabase_jwt_secret:
162140
# secret: !env POWERSYNC_SUPABASE_JWT_SECRET
163-
164-
# # [optional] Additional audiences to accept when validating incoming JWT tokens (the instance domain is always accepted)
165-
# additional_audiences: []
166-
167-
# # [optional] Enables development tokens to be generated and accepted by the instance
168-
# allow_temporary_tokens: false
169-
170-
# # [optional] URL to a JSON Web Key Set (JWKS) endpoint; the instance fetches public keys from this URL to verify JWT signatures from clients.
141+
# # [optional] JWKS URL; instance fetches public keys to verify JWT signatures.
171142
# jwks_uri: https://example.com/jwks.json
172-
# # [optional] Inline JSON Web Key Set; provide keys directly instead of (or in addition to) jwks_uri to verify JWT signatures.
143+
# # [optional] Inline JWKS; provide keys directly instead of or in addition to jwks_uri.
173144
# jwks:
174145
# keys:
175146
# HMAC (symmetric) – Options: HS256 | HS384 | HS512
@@ -197,3 +168,7 @@ region: us
197168
# crv: Ed25519
198169
# x: "<base64url-public-key>"
199170
# alg: EdDSA
171+
# # [optional] Additional audiences to accept (instance domain is always accepted). Default: [].
172+
# additional_audiences: []
173+
# # [optional] Allow development/temporary tokens. Default: false.
174+
# allow_temporary_tokens: false

0 commit comments

Comments
 (0)