@ossy/platform 1.30.0 → 1.31.1

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/package.json CHANGED
@@ -1,12 +1,15 @@
1
1
  {
2
2
  "name": "@ossy/platform",
3
- "version": "1.30.0",
3
+ "version": "1.31.1",
4
4
  "description": "Ossy application server runtime",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ossy-se/packages.git"
8
8
  },
9
9
  "type": "module",
10
+ "ossy": {
11
+ "src": "./src"
12
+ },
10
13
  "main": "./src/server.js",
11
14
  "exports": {
12
15
  ".": "./src/server.js",
@@ -25,8 +28,8 @@
25
28
  "author": "Ossy <yourfriends@ossy.se> (https://ossy.se)",
26
29
  "license": "MIT",
27
30
  "dependencies": {
28
- "@ossy/router": "^1.31.0",
29
- "@ossy/sdk": "^1.31.0",
31
+ "@ossy/router": "^1.32.1",
32
+ "@ossy/sdk": "^1.32.1",
30
33
  "cookie-parser": "^1.4.7",
31
34
  "dotenv": ">=16.0.0 <18.0.0",
32
35
  "express": ">=5.0.0 <6.0.0",
@@ -37,5 +40,5 @@
37
40
  "src",
38
41
  "Dockerfile"
39
42
  ],
40
- "gitHead": "ccbb5575213d2703e3cad5608b85c3478fc421bc"
43
+ "gitHead": "b976fdb88970a76f135238baa970c20f9f357dc9"
41
44
  }
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Matches the shape written to S3 as `platform-config.json` by deployment-tools
3
+ * (`BucketDeployment` → `Source.jsonData('platform-config.json', { ...config, awsRoleToAssume: undefined })`).
4
+ *
5
+ * @see ossy/packages/deployment-tools/src/config/platform-config.js (PlatformConfig typedef)
6
+ * @see ossy/packages/deployment-tools/src/infrastructure/container-deployment-target/container-deployment-target.js
7
+ *
8
+ * Note: `awsRoleToAssume` is intentionally omitted from the uploaded file (secret); do not store it here.
9
+ * Optional `sesDomains` / `dnsRecords` are JSON text fields for arrays/objects.
10
+ */
11
+ export default {
12
+ name: 'Platform config',
13
+ id: '@ossy/platform/config',
14
+ icon: 'controller',
15
+ fields: [
16
+ {
17
+ name: 'platformId',
18
+ label: 'Platform ID (Ossy reference)',
19
+ type: 'text',
20
+ },
21
+ {
22
+ name: 'platformName',
23
+ label: 'platformName',
24
+ type: 'text',
25
+ },
26
+ {
27
+ name: 'awsAccountId',
28
+ label: 'awsAccountId',
29
+ type: 'text',
30
+ },
31
+ {
32
+ name: 'awsRegion',
33
+ label: 'awsRegion',
34
+ type: 'text',
35
+ },
36
+ {
37
+ name: 'awsKeyPairName',
38
+ label: 'awsKeyPairName',
39
+ type: 'text',
40
+ },
41
+ {
42
+ name: 'awsStaticBucketName',
43
+ label: 'awsStaticBucketName',
44
+ type: 'text',
45
+ },
46
+ {
47
+ name: 'awsDeploymentSqsName',
48
+ label: 'awsDeploymentSqsName',
49
+ type: 'text',
50
+ },
51
+ {
52
+ name: 'awsDeploymentSqsArn',
53
+ label: 'awsDeploymentSqsArn',
54
+ type: 'text',
55
+ },
56
+ {
57
+ name: 'ciGithubActionsRepo',
58
+ label: 'ciGithubActionsRepo (org/repo)',
59
+ type: 'text',
60
+ },
61
+ {
62
+ name: 'ciDockerNetworkName',
63
+ label: 'ciDockerNetworkName',
64
+ type: 'text',
65
+ },
66
+ {
67
+ name: 'sesDomains',
68
+ label: 'sesDomains (JSON array of strings, optional)',
69
+ type: 'textarea',
70
+ },
71
+ {
72
+ name: 'dnsRecords',
73
+ label: 'dnsRecords (JSON object, optional)',
74
+ type: 'textarea',
75
+ },
76
+ {
77
+ name: 'Notes',
78
+ label: 'Notes',
79
+ type: 'textarea',
80
+ },
81
+ ],
82
+ }
package/src/runtime.js CHANGED
@@ -168,7 +168,7 @@ export async function startRuntime ({ port } = {}) {
168
168
  ...(req.userAppSettings || {}),
169
169
  theme: req.userAppSettings?.theme || cloneSerializable(config?.theme),
170
170
  themes: cloneSerializable(config?.themes),
171
- resourceTemplates: cloneSerializable(config?.resourceTemplates),
171
+ resourceTemplates: cloneSerializable(manifest.resourceTemplates),
172
172
  url: requestUrl,
173
173
  isAuthenticated: !!req.isAuthenticated,
174
174
  pages: manifest.pages.map((page) => ({ id: page.id, path: page.path })),