canopycms-cdk 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constructs/cms-service.d.ts +55 -0
- package/dist/constructs/cms-service.js +169 -15
- package/dist/constructs/worker-lifecycle.d.ts +1 -1
- package/dist/constructs/worker-lifecycle.js +1 -0
- package/package.json +4 -4
- package/worker/canopy-github.service +1 -1
- package/worker/canopy-worker.service +1 -1
- package/worker/dist/index.js +1601 -855
- package/worker/dist/index.js.contract +1 -1
- package/worker/dist/index.js.sha256 +1 -1
- package/worker/dist/instance-files.sh +2 -2
- package/worker/gateway.env.example +12 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7050de89e56f9252aa3cb84dc1f5bb06f644afd26493f19dfa20e0f82a5a09a0 index.js
|
|
@@ -47,7 +47,7 @@ StandardError=append:/var/log/canopy-worker/worker.log
|
|
|
47
47
|
StateDirectory=canopy-worker
|
|
48
48
|
EnvironmentFile=/opt/canopy-worker/.env
|
|
49
49
|
# What this unit provides; a bundle needing more refuses to start.
|
|
50
|
-
Environment=CANOPYCMS_WORKER_CONTRACT=
|
|
50
|
+
Environment=CANOPYCMS_WORKER_CONTRACT=3
|
|
51
51
|
# The GitHub gateway, its only way to GitHub, the Clerk API and the
|
|
52
52
|
# instance role.
|
|
53
53
|
Environment=CANOPYCMS_GITHUB_GATEWAY_SOCKET=/run/canopy-github/gateway.sock
|
|
@@ -222,7 +222,7 @@ StateDirectoryMode=0700
|
|
|
222
222
|
# 0640 root:canopy-github: the secrets, unreadable to the worker.
|
|
223
223
|
EnvironmentFile=/opt/canopy-worker/gateway.env
|
|
224
224
|
# What this unit provides; a bundle needing more refuses to start.
|
|
225
|
-
Environment=CANOPYCMS_WORKER_CONTRACT=
|
|
225
|
+
Environment=CANOPYCMS_WORKER_CONTRACT=3
|
|
226
226
|
# Sandbox. Writable: the state dir and a private /tmp. No view of EFS,
|
|
227
227
|
# which the gateway checks at boot, as it checks that cores are not
|
|
228
228
|
# piped to a helper and that its core limit is zero.
|
|
@@ -9,6 +9,15 @@ CANOPYCMS_GITHUB_REPO=your-site
|
|
|
9
9
|
AWS_REGION=us-east-1
|
|
10
10
|
# The branch the worker syncs; the gateway never pushes it. Set it here and in the worker's .env.
|
|
11
11
|
CANOPYCMS_BASE_BRANCH=main
|
|
12
|
+
# The settings branch the gateway pushes, the only one: canopycms-settings-<deployment name>, or
|
|
13
|
+
# CANOPYCMS_SETTINGS_BRANCH when set. Set both exactly as in the worker's .env.
|
|
14
|
+
CANOPYCMS_DEPLOYMENT_NAME=prod
|
|
15
|
+
#CANOPYCMS_SETTINGS_BRANCH=canopycms-settings-prod
|
|
16
|
+
# The prefix of every branch editors create, the only branches the gateway writes beside its
|
|
17
|
+
# settings branch, ending with /. It must resolve to the namespace the CMS Lambda resolves: the
|
|
18
|
+
# CDK stamps that resolved value, such as canopycms/prod/, on both. {deployment} in it stands for
|
|
19
|
+
# CANOPYCMS_DEPLOYMENT_NAME.
|
|
20
|
+
#CANOPYCMS_BRANCH_NAMESPACE=canopycms/{deployment}/
|
|
12
21
|
# A token, by its Secrets Manager ARN (and the field, for a JSON secret)...
|
|
13
22
|
CANOPYCMS_GITHUB_TOKEN_SECRET_ARN=arn:aws:secretsmanager:us-east-1:123456789012:secret:github-token
|
|
14
23
|
#CANOPYCMS_GITHUB_TOKEN_SECRET_JSON_FIELD=token
|
|
@@ -23,5 +32,8 @@ CLERK_SECRET_KEY_SECRET_ARN=arn:aws:secretsmanager:us-east-1:123456789012:secret
|
|
|
23
32
|
#CANOPYCMS_CLERK_ORGANIZATIONS_AS_GROUPS=false
|
|
24
33
|
# Branches the gateway never pushes, deletes or opens a pull request from: names and `*` globs.
|
|
25
34
|
#CANOPYCMS_PROTECTED_BRANCHES=release/*,production
|
|
35
|
+
# Beside its settings branch, the gateway writes only branches in its namespace, and these
|
|
36
|
+
# exact names from before it.
|
|
37
|
+
#CANOPYCMS_LEGACY_BRANCHES=spring-update,fix-typos
|
|
26
38
|
# On spot capacity, so the gateway watches for an interruption notice too.
|
|
27
39
|
#CANOPYCMS_WORKER_CAPACITY=spot
|