@cyaxis/ulvia 1.0.19 → 1.0.20
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/INSTALLATION.md +1 -1
- package/README.md +2 -2
- package/SHARED-HOSTING.md +1 -1
- package/dist/index.js +103 -65
- package/dist/stack-release.json +1 -1
- package/package.json +1 -1
package/INSTALLATION.md
CHANGED
|
@@ -25,7 +25,7 @@ bun --version
|
|
|
25
25
|
Install the chosen compatible CLI release with
|
|
26
26
|
`bun add --global @cyaxis/ulvia@CLI_VERSION`, replacing `CLI_VERSION` with its
|
|
27
27
|
exact version. Workspace contributors can use `bun run ulvia --` instead;
|
|
28
|
-
see [development](https://github.com/matthias-bernouy/CMS/blob/
|
|
28
|
+
see [development](https://github.com/matthias-bernouy/CMS/blob/b028b22aaecf33f088a238292cb1a727f95a3cdf/docs/development/README.md).
|
|
29
29
|
|
|
30
30
|
## 2. Start a local installation
|
|
31
31
|
|
package/README.md
CHANGED
|
@@ -152,7 +152,7 @@ ulvia release infra/releases
|
|
|
152
152
|
|
|
153
153
|
The official build and the trusted local `ulvia.release.ts` entry share the same
|
|
154
154
|
SDK inventory and compiler for feature contracts, manifest claims and bootstrap. See the
|
|
155
|
-
[SDK workflow](https://github.com/matthias-bernouy/CMS/blob/
|
|
155
|
+
[SDK workflow](https://github.com/matthias-bernouy/CMS/blob/b028b22aaecf33f088a238292cb1a727f95a3cdf/docs/development/sdk-releases.md) for explicit versions,
|
|
156
156
|
source-module rules and generated runtime attachment.
|
|
157
157
|
|
|
158
158
|
Contract fixture assets declared in `definition.json` are read from
|
|
@@ -283,7 +283,7 @@ exports collection example frames, generated PNGs, an interactive local explorer
|
|
|
283
283
|
provenance manifest. Screenshots require the Playwright Chromium browser
|
|
284
284
|
(`bunx playwright@1.64.1 install chromium`). Dependencies and required contracts are
|
|
285
285
|
resolved explicitly from local sources/cache; preview never publishes. See
|
|
286
|
-
[collection examples](https://github.com/matthias-bernouy/CMS/blob/
|
|
286
|
+
[collection examples](https://github.com/matthias-bernouy/CMS/blob/b028b22aaecf33f088a238292cb1a727f95a3cdf/docs/blocs/examples.md) for source and release formats.
|
|
287
287
|
|
|
288
288
|
### Editable collection publication
|
|
289
289
|
|
package/SHARED-HOSTING.md
CHANGED
|
@@ -31,7 +31,7 @@ Hosting 1.1 also admits names under persisted, Control-owned verified DNS zones.
|
|
|
31
31
|
`zones.claim` returns a dedicated `_ulvia-zone` TXT proof; `zones.verify` checks it
|
|
32
32
|
once to grant apex/descendant admissions. `zones.list` is cursor-paged and
|
|
33
33
|
`zones.disable` removes that grant without modifying existing sites. Reclaiming a
|
|
34
|
-
disabled zone rotates its proof. See the [zone workflow](https://github.com/matthias-bernouy/CMS/blob/
|
|
34
|
+
disabled zone rotates its proof. See the [zone workflow](https://github.com/matthias-bernouy/CMS/blob/b028b22aaecf33f088a238292cb1a727f95a3cdf/packages/features/hosting/docs/management/zones.md).
|
|
35
35
|
|
|
36
36
|
## Contract boundaries
|
|
37
37
|
|
package/dist/index.js
CHANGED
|
@@ -116,7 +116,7 @@ function defaultStackVersion() {
|
|
|
116
116
|
}
|
|
117
117
|
return injectedStackVersion;
|
|
118
118
|
}
|
|
119
|
-
var injectedCliVersion = "1.0.
|
|
119
|
+
var injectedCliVersion = "1.0.20", injectedStackVersion = "1.0.20", CLI_VERSION, DEFAULT_STACK_VERSION;
|
|
120
120
|
var init_version = __esm(() => {
|
|
121
121
|
CLI_VERSION = injectedCliVersion ?? "development";
|
|
122
122
|
DEFAULT_STACK_VERSION = injectedStackVersion ?? "unbundled";
|
|
@@ -6792,7 +6792,7 @@ var init_state = __esm(() => {
|
|
|
6792
6792
|
import { readFile as readFile2 } from "fs/promises";
|
|
6793
6793
|
import { resolve as resolve2 } from "path";
|
|
6794
6794
|
function embeddedStackRelease() {
|
|
6795
|
-
return typeof { schema: "ulvia.stack-release.v1", version: "1.0.
|
|
6795
|
+
return typeof { schema: "ulvia.stack-release.v1", version: "1.0.20", stackApi: 1, files: { "services.yml": `services:
|
|
6796
6796
|
proxy:
|
|
6797
6797
|
image: caddy:2.11.9-alpine@sha256:0bbb055bda6793c999bde78b1b5ce3e89f829fb031af2cf50056ea1246559fee
|
|
6798
6798
|
restart: unless-stopped
|
|
@@ -6959,7 +6959,7 @@ if (existing) {
|
|
|
6959
6959
|
} else {
|
|
6960
6960
|
admin.createUser({ user: username, pwd: password, roles });
|
|
6961
6961
|
}
|
|
6962
|
-
` }, digest: "sha256:
|
|
6962
|
+
` }, digest: "sha256:9cfbb82f85da867b0ad3c2b60979867657ac37ee2250e7aac1b94f5a86896e99" } === "object" ? parseStackRelease({ schema: "ulvia.stack-release.v1", version: "1.0.20", stackApi: 1, files: { "services.yml": `services:
|
|
6963
6963
|
proxy:
|
|
6964
6964
|
image: caddy:2.11.9-alpine@sha256:0bbb055bda6793c999bde78b1b5ce3e89f829fb031af2cf50056ea1246559fee
|
|
6965
6965
|
restart: unless-stopped
|
|
@@ -7126,7 +7126,7 @@ if (existing) {
|
|
|
7126
7126
|
} else {
|
|
7127
7127
|
admin.createUser({ user: username, pwd: password, roles });
|
|
7128
7128
|
}
|
|
7129
|
-
` }, digest: "sha256:
|
|
7129
|
+
` }, digest: "sha256:9cfbb82f85da867b0ad3c2b60979867657ac37ee2250e7aac1b94f5a86896e99" }) : undefined;
|
|
7130
7130
|
}
|
|
7131
7131
|
async function sourceStackRelease(version, directory = resolve2(import.meta.dir, "../orchestration/definitions")) {
|
|
7132
7132
|
const files = Object.fromEntries(await Promise.all(RELEASE_FILES.map(async (name) => [name, await readFile2(resolve2(directory, name), "utf8")])));
|
|
@@ -15218,6 +15218,30 @@ var init_timestamps = __esm(() => {
|
|
|
15218
15218
|
init_errors12();
|
|
15219
15219
|
});
|
|
15220
15220
|
|
|
15221
|
+
// packages/features/content/src/blocs/core/markup/contentRefs.ts
|
|
15222
|
+
function extractRefs(html) {
|
|
15223
|
+
const blocs = new Set;
|
|
15224
|
+
for (const m of html.matchAll(BLOC_RE)) {
|
|
15225
|
+
const tag = (m[2] ?? "").toLowerCase();
|
|
15226
|
+
if (RESERVED_PREFIXES.some((p) => tag.startsWith(p))) {
|
|
15227
|
+
continue;
|
|
15228
|
+
}
|
|
15229
|
+
blocs.add(tag);
|
|
15230
|
+
}
|
|
15231
|
+
return { blocs };
|
|
15232
|
+
}
|
|
15233
|
+
var RESERVED_PREFIXES, BLOC_RE;
|
|
15234
|
+
var init_contentRefs = __esm(() => {
|
|
15235
|
+
RESERVED_PREFIXES = ["p9r-", "w13c-", "be5-", "cms-"];
|
|
15236
|
+
BLOC_RE = /\bcms-bloc\s*=\s*(["'])([a-z][a-z0-9]*-[a-z0-9-]+)\1/giu;
|
|
15237
|
+
});
|
|
15238
|
+
|
|
15239
|
+
// packages/features/content/src/blocs/core/catalogue/editing/references.ts
|
|
15240
|
+
var init_references = __esm(() => {
|
|
15241
|
+
init_contentRefs();
|
|
15242
|
+
init_errors12();
|
|
15243
|
+
});
|
|
15244
|
+
|
|
15221
15245
|
// packages/features/content/src/blocs/core/catalogue/ownership.ts
|
|
15222
15246
|
var init_ownership = __esm(() => {
|
|
15223
15247
|
init_errors12();
|
|
@@ -15227,10 +15251,18 @@ var init_ownership = __esm(() => {
|
|
|
15227
15251
|
var init_records = __esm(() => {
|
|
15228
15252
|
init_errors12();
|
|
15229
15253
|
init_timestamps();
|
|
15254
|
+
init_references();
|
|
15230
15255
|
init_ownership();
|
|
15231
15256
|
init_ownership();
|
|
15232
15257
|
});
|
|
15233
15258
|
|
|
15259
|
+
// packages/features/content/src/blocs/core/validation/snapshot/budget.ts
|
|
15260
|
+
var SITE_BLOC_DOCUMENT_LIMIT;
|
|
15261
|
+
var init_budget = __esm(() => {
|
|
15262
|
+
init_errors12();
|
|
15263
|
+
SITE_BLOC_DOCUMENT_LIMIT = 4 * 1024 * 1024;
|
|
15264
|
+
});
|
|
15265
|
+
|
|
15234
15266
|
// packages/features/content/src/application/core/validation/predicates.ts
|
|
15235
15267
|
function isValidPathFormat(path) {
|
|
15236
15268
|
if (!path || typeof path !== "string") {
|
|
@@ -39553,9 +39585,10 @@ var init_nativeStructure = __esm(() => {
|
|
|
39553
39585
|
init_svgReference();
|
|
39554
39586
|
});
|
|
39555
39587
|
|
|
39556
|
-
// packages/features/content/src/blocs/core/validation/snapshot.ts
|
|
39588
|
+
// packages/features/content/src/blocs/core/validation/snapshot/index.ts
|
|
39557
39589
|
var init_snapshot = __esm(() => {
|
|
39558
39590
|
init_errors12();
|
|
39591
|
+
init_budget();
|
|
39559
39592
|
init_nativeContent();
|
|
39560
39593
|
init_nativeHtml();
|
|
39561
39594
|
init_nativeStructure();
|
|
@@ -39711,24 +39744,6 @@ var init_definition = __esm(() => {
|
|
|
39711
39744
|
]);
|
|
39712
39745
|
});
|
|
39713
39746
|
|
|
39714
|
-
// packages/features/content/src/blocs/core/markup/contentRefs.ts
|
|
39715
|
-
function extractRefs(html) {
|
|
39716
|
-
const blocs = new Set;
|
|
39717
|
-
for (const m of html.matchAll(BLOC_RE)) {
|
|
39718
|
-
const tag = (m[2] ?? "").toLowerCase();
|
|
39719
|
-
if (RESERVED_PREFIXES.some((p) => tag.startsWith(p))) {
|
|
39720
|
-
continue;
|
|
39721
|
-
}
|
|
39722
|
-
blocs.add(tag);
|
|
39723
|
-
}
|
|
39724
|
-
return { blocs };
|
|
39725
|
-
}
|
|
39726
|
-
var RESERVED_PREFIXES, BLOC_RE;
|
|
39727
|
-
var init_contentRefs = __esm(() => {
|
|
39728
|
-
RESERVED_PREFIXES = ["p9r-", "w13c-", "be5-", "cms-"];
|
|
39729
|
-
BLOC_RE = /\bcms-bloc\s*=\s*(["'])([a-z][a-z0-9]*-[a-z0-9-]+)\1/giu;
|
|
39730
|
-
});
|
|
39731
|
-
|
|
39732
39747
|
// packages/features/content/src/blocs/core/markup/validation/managedNativeElements.ts
|
|
39733
39748
|
function managedNativeDocumentIssue(root, contracts, options = {}) {
|
|
39734
39749
|
const hostsById = new Map;
|
|
@@ -41465,7 +41480,7 @@ function problem(context, element, attribute, code, message) {
|
|
|
41465
41480
|
};
|
|
41466
41481
|
}
|
|
41467
41482
|
var REFERENCES;
|
|
41468
|
-
var
|
|
41483
|
+
var init_references2 = __esm(() => {
|
|
41469
41484
|
REFERENCES = [
|
|
41470
41485
|
"aria-activedescendant",
|
|
41471
41486
|
"aria-details",
|
|
@@ -41544,7 +41559,7 @@ var init_expandedPageDocument = __esm(() => {
|
|
|
41544
41559
|
init_expandCompositions();
|
|
41545
41560
|
init_stateGraph();
|
|
41546
41561
|
init_outline();
|
|
41547
|
-
|
|
41562
|
+
init_references2();
|
|
41548
41563
|
init_diagnostics();
|
|
41549
41564
|
init_errors12();
|
|
41550
41565
|
});
|
|
@@ -48938,12 +48953,18 @@ var init_organization = __esm(() => {
|
|
|
48938
48953
|
init_errors12();
|
|
48939
48954
|
});
|
|
48940
48955
|
|
|
48956
|
+
// packages/features/content/src/settings/core/favicon.ts
|
|
48957
|
+
var init_favicon = __esm(() => {
|
|
48958
|
+
init_errors12();
|
|
48959
|
+
});
|
|
48960
|
+
|
|
48941
48961
|
// packages/features/content/src/settings/core/validation/index.ts
|
|
48942
48962
|
var init_validation5 = __esm(() => {
|
|
48943
48963
|
init_errors12();
|
|
48944
48964
|
init_core3();
|
|
48945
48965
|
init_organization();
|
|
48946
48966
|
init_values3();
|
|
48967
|
+
init_favicon();
|
|
48947
48968
|
});
|
|
48948
48969
|
|
|
48949
48970
|
// packages/features/content/src/pages/http/publishedPageSnapshot.ts
|
|
@@ -49083,6 +49104,50 @@ var init_fields = __esm(() => {
|
|
|
49083
49104
|
init_nativeContent();
|
|
49084
49105
|
MAX_PAGE_CONTENT_LENGTH = 1024 * 1024;
|
|
49085
49106
|
});
|
|
49107
|
+
// packages/features/content/src/blocs/core/validation/index.ts
|
|
49108
|
+
var init_validation6 = __esm(() => {
|
|
49109
|
+
init_definition();
|
|
49110
|
+
init_snapshot();
|
|
49111
|
+
init_nativeStructure();
|
|
49112
|
+
});
|
|
49113
|
+
// packages/features/content/src/blocs/core/publication/source/siteBlocHtml.ts
|
|
49114
|
+
var init_siteBlocHtml = __esm(() => {
|
|
49115
|
+
init_types2();
|
|
49116
|
+
init_nativeContent();
|
|
49117
|
+
init_expandCompositions();
|
|
49118
|
+
init_nativeBindings();
|
|
49119
|
+
init_nativeHtml();
|
|
49120
|
+
init_validation6();
|
|
49121
|
+
});
|
|
49122
|
+
|
|
49123
|
+
// packages/features/content/src/blocs/core/publication/source/generateSiteBlocSourceBundle.ts
|
|
49124
|
+
var init_generateSiteBlocSourceBundle = __esm(() => {
|
|
49125
|
+
init_validation6();
|
|
49126
|
+
init_siteBlocHtml();
|
|
49127
|
+
});
|
|
49128
|
+
|
|
49129
|
+
// packages/features/content/src/blocs/core/catalogue/siteBlocMarkup.ts
|
|
49130
|
+
var init_siteBlocMarkup = __esm(() => {
|
|
49131
|
+
init_esm7();
|
|
49132
|
+
init_errors12();
|
|
49133
|
+
});
|
|
49134
|
+
|
|
49135
|
+
// packages/features/content/src/blocs/core/catalogue/siteBlocContracts.ts
|
|
49136
|
+
var init_siteBlocContracts = __esm(() => {
|
|
49137
|
+
init_errors12();
|
|
49138
|
+
init_generateSiteBlocSourceBundle();
|
|
49139
|
+
init_siteBlocHtml();
|
|
49140
|
+
init_siteBlocMarkup();
|
|
49141
|
+
init_validation6();
|
|
49142
|
+
});
|
|
49143
|
+
|
|
49144
|
+
// packages/features/content/src/blocs/core/catalogue/editing/documents.ts
|
|
49145
|
+
var init_documents = __esm(() => {
|
|
49146
|
+
init_errors12();
|
|
49147
|
+
init_budget();
|
|
49148
|
+
init_siteBlocContracts();
|
|
49149
|
+
});
|
|
49150
|
+
|
|
49086
49151
|
// packages/features/content/src/pages/core/contracts/listPages.ts
|
|
49087
49152
|
var init_listPages = __esm(() => {
|
|
49088
49153
|
init_errors12();
|
|
@@ -49195,7 +49260,9 @@ var init_system = __esm(() => {
|
|
|
49195
49260
|
init_core3();
|
|
49196
49261
|
});
|
|
49197
49262
|
// packages/features/content/src/blocs/core/publication/SiteBlocPublicationQueue.ts
|
|
49198
|
-
var init_SiteBlocPublicationQueue = () => {
|
|
49263
|
+
var init_SiteBlocPublicationQueue = __esm(() => {
|
|
49264
|
+
init_errors12();
|
|
49265
|
+
});
|
|
49199
49266
|
|
|
49200
49267
|
// packages/features/content/src/application/default-implementation/memory/InMemoryBlocRepository.ts
|
|
49201
49268
|
var init_InMemoryBlocRepository = __esm(() => {
|
|
@@ -49222,6 +49289,11 @@ var init_InMemoryPageRepository = __esm(() => {
|
|
|
49222
49289
|
init_values3();
|
|
49223
49290
|
});
|
|
49224
49291
|
|
|
49292
|
+
// packages/features/content/src/application/default-implementation/memory/siteBlocDeletion.ts
|
|
49293
|
+
var init_siteBlocDeletion = __esm(() => {
|
|
49294
|
+
init_references();
|
|
49295
|
+
});
|
|
49296
|
+
|
|
49225
49297
|
// packages/features/content/src/application/default-implementation/memory/InMemoryContentRepository.ts
|
|
49226
49298
|
var init_InMemoryContentRepository = __esm(() => {
|
|
49227
49299
|
init_errors12();
|
|
@@ -49229,43 +49301,7 @@ var init_InMemoryContentRepository = __esm(() => {
|
|
|
49229
49301
|
init_system();
|
|
49230
49302
|
init_pagePaths();
|
|
49231
49303
|
init_InMemoryPageRepository();
|
|
49232
|
-
|
|
49233
|
-
|
|
49234
|
-
// packages/features/content/src/blocs/core/validation/index.ts
|
|
49235
|
-
var init_validation6 = __esm(() => {
|
|
49236
|
-
init_definition();
|
|
49237
|
-
init_snapshot();
|
|
49238
|
-
init_nativeStructure();
|
|
49239
|
-
});
|
|
49240
|
-
// packages/features/content/src/blocs/core/publication/source/siteBlocHtml.ts
|
|
49241
|
-
var init_siteBlocHtml = __esm(() => {
|
|
49242
|
-
init_types2();
|
|
49243
|
-
init_nativeContent();
|
|
49244
|
-
init_expandCompositions();
|
|
49245
|
-
init_nativeBindings();
|
|
49246
|
-
init_nativeHtml();
|
|
49247
|
-
init_validation6();
|
|
49248
|
-
});
|
|
49249
|
-
|
|
49250
|
-
// packages/features/content/src/blocs/core/publication/source/generateSiteBlocSourceBundle.ts
|
|
49251
|
-
var init_generateSiteBlocSourceBundle = __esm(() => {
|
|
49252
|
-
init_validation6();
|
|
49253
|
-
init_siteBlocHtml();
|
|
49254
|
-
});
|
|
49255
|
-
|
|
49256
|
-
// packages/features/content/src/blocs/core/catalogue/siteBlocMarkup.ts
|
|
49257
|
-
var init_siteBlocMarkup = __esm(() => {
|
|
49258
|
-
init_esm7();
|
|
49259
|
-
init_errors12();
|
|
49260
|
-
});
|
|
49261
|
-
|
|
49262
|
-
// packages/features/content/src/blocs/core/catalogue/siteBlocContracts.ts
|
|
49263
|
-
var init_siteBlocContracts = __esm(() => {
|
|
49264
|
-
init_errors12();
|
|
49265
|
-
init_generateSiteBlocSourceBundle();
|
|
49266
|
-
init_siteBlocHtml();
|
|
49267
|
-
init_siteBlocMarkup();
|
|
49268
|
-
init_validation6();
|
|
49304
|
+
init_siteBlocDeletion();
|
|
49269
49305
|
});
|
|
49270
49306
|
// packages/features/content/src/pages/core/indexing/detection.ts
|
|
49271
49307
|
var init_detection = __esm(() => {
|
|
@@ -49330,6 +49366,8 @@ var init_ValidatingContentRepository = __esm(() => {
|
|
|
49330
49366
|
var init_exports7 = __esm(() => {
|
|
49331
49367
|
init_presentationImage();
|
|
49332
49368
|
init_fields();
|
|
49369
|
+
init_documents();
|
|
49370
|
+
init_references();
|
|
49333
49371
|
init_listPages();
|
|
49334
49372
|
init_renamePage();
|
|
49335
49373
|
init_pageDetails();
|
|
@@ -52011,7 +52049,7 @@ var init_clock = __esm(() => {
|
|
|
52011
52049
|
var init_errors17 = () => {};
|
|
52012
52050
|
|
|
52013
52051
|
// packages/platform/providers/src/installations/core/parsing/documents.ts
|
|
52014
|
-
var
|
|
52052
|
+
var init_documents2 = __esm(() => {
|
|
52015
52053
|
init_exports3();
|
|
52016
52054
|
init_protocol();
|
|
52017
52055
|
init_errors15();
|
|
@@ -52128,7 +52166,7 @@ var init_preview = __esm(() => {
|
|
|
52128
52166
|
var init_validation8 = __esm(() => {
|
|
52129
52167
|
init_clock();
|
|
52130
52168
|
init_clock();
|
|
52131
|
-
|
|
52169
|
+
init_documents2();
|
|
52132
52170
|
init_fields2();
|
|
52133
52171
|
init_normalizeManifestYank();
|
|
52134
52172
|
init_validateProviderManifest();
|
package/dist/stack-release.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema":"ulvia.stack-release.v1","version":"1.0.
|
|
1
|
+
{"schema":"ulvia.stack-release.v1","version":"1.0.20","stackApi":1,"files":{"services.yml":"services:\n proxy:\n image: caddy:2.11.9-alpine@sha256:0bbb055bda6793c999bde78b1b5ce3e89f829fb031af2cf50056ea1246559fee\n restart: unless-stopped\n user: \"${ULVIA_UID}:${ULVIA_GID}\"\n command: [\"caddy\", \"run\", \"--config\", \"/etc/caddy/ulvia.json\"]\n ports:\n - \"${ULVIA_BIND_ADDRESS}:${ULVIA_HTTP_PORT}:80\"\n volumes:\n - ${ULVIA_CADDY_CONFIG}:/etc/caddy/ulvia.json:ro\n - ${ULVIA_PROXY_CERTIFICATES_DIR}:/data\n environment:\n ULVIA_CONFIG_DIGEST: ${ULVIA_CADDY_CONFIG_DIGEST}\n XDG_DATA_HOME: /data\n XDG_CONFIG_HOME: /tmp/config\n networks:\n - instances\n read_only: true\n tmpfs:\n - /tmp:rw,nosuid,nodev,noexec,size=32m\n cap_drop: [ALL]\n security_opt: [no-new-privileges:true]\n stop_grace_period: 30s\n\n mongo:\n ulimits:\n nofile:\n soft: 65536\n hard: 65536\n image: mongo:7.0.37@sha256:d5b3ca8c3f3cdce78d44870dc0871b76d5235e9b2ad4ea6bea5d1fbff8027703\n restart: unless-stopped\n user: \"${ULVIA_UID}:${ULVIA_GID}\"\n environment:\n MONGO_INITDB_ROOT_USERNAME: ${ULVIA_MONGO_USERNAME}\n MONGO_INITDB_ROOT_PASSWORD: ${ULVIA_MONGO_PASSWORD}\n volumes:\n - type: bind\n source: ${ULVIA_MONGO_DIR}\n target: /data/db\n networks:\n - private\n healthcheck:\n test:\n [\n \"CMD-SHELL\",\n \"mongosh --quiet --username \\\"$$MONGO_INITDB_ROOT_USERNAME\\\" --password \\\"$$MONGO_INITDB_ROOT_PASSWORD\\\" --authenticationDatabase admin --eval 'quit(db.adminCommand({ ping: 1 }).ok ? 0 : 1)'\",\n ]\n interval: 30s\n timeout: 5s\n retries: 3\n start_period: 10s\n stop_grace_period: 30s\n\n mongo-provision:\n image: mongo:7.0.37@sha256:d5b3ca8c3f3cdce78d44870dc0871b76d5235e9b2ad4ea6bea5d1fbff8027703\n restart: \"no\"\n user: \"${ULVIA_UID}:${ULVIA_GID}\"\n environment:\n HOME: /tmp\n MONGO_INITDB_ROOT_USERNAME: ${ULVIA_MONGO_USERNAME}\n MONGO_INITDB_ROOT_PASSWORD: ${ULVIA_MONGO_PASSWORD}\n MONGO_PROVIDER_USERNAME: ${ULVIA_MONGO_PROVIDER_USERNAME}\n MONGO_PROVIDER_PASSWORD: ${ULVIA_MONGO_PROVIDER_PASSWORD}\n entrypoint: [\"/bin/sh\", \"-c\"]\n command:\n - >-\n exec mongosh --quiet --host mongo\n --username \"$$MONGO_INITDB_ROOT_USERNAME\"\n --password \"$$MONGO_INITDB_ROOT_PASSWORD\"\n --authenticationDatabase admin\n /opt/ulvia-mongo/provision-provider.js\n volumes:\n - ./mongo/provision-provider.js:/opt/ulvia-mongo/provision-provider.js:ro\n networks:\n - private\n depends_on:\n mongo:\n condition: service_healthy\n read_only: true\n tmpfs:\n - /tmp:rw,nosuid,nodev,noexec,size=32m\n cap_drop: [ALL]\n security_opt: [no-new-privileges:true]\n\n provider:\n image: ${PROVIDER_IMAGE}\n restart: unless-stopped\n init: true\n user: \"${ULVIA_UID}:${ULVIA_GID}\"\n environment:\n MODE: PROD\n NODE_ENV: production\n CMS_FILES_DIR: /var/lib/cms/files\n CMS_SESSION_SECRET: ${ULVIA_PROVIDER_SESSION_SECRET}\n CMS_KEK_ACTIVE_ID: ${ULVIA_PROVIDER_KEK_ACTIVE_ID}\n CMS_KEK_RING_JSON: ${ULVIA_PROVIDER_KEK_RING_JSON}\n MONGO_URL: mongodb://${ULVIA_MONGO_PROVIDER_USERNAME}:${ULVIA_MONGO_PROVIDER_PASSWORD}@mongo:27017/ulvia_provider_control?authSource=admin&retryWrites=false\n ULVIA_PROVIDER_HOST: 0.0.0.0\n ULVIA_PROVIDER_PORT: \"5103\"\n ULVIA_PROVIDER_PUBLIC_URL: http://ulvia-provider:5103\n ULVIA_PROVIDER_OPERATOR_TOKEN: ${ULVIA_PROVIDER_OPERATOR_TOKEN}\n ULVIA_CONTROL_ORIGIN: ${ULVIA_CONTROL_ORIGIN}\n ULVIA_HOSTING_PROXY_URL: http://proxy:8080\n ULVIA_CONTROL_BOOTSTRAP_FILE: /run/ulvia/control-administrator.json\n ULVIA_EDGE_ROUTING_SECRET: ${ULVIA_EDGE_ROUTING_SECRET}\n ULVIA_HOSTING_MANAGED_SUFFIXES: ${ULVIA_HOSTING_MANAGED_SUFFIXES}\n ULVIA_TLS_ENTRYPOINTS: ${ULVIA_TLS_ENTRYPOINTS}\n ULVIA_TLS_PUBLIC_ADDRESSES: ${ULVIA_TLS_PUBLIC_ADDRESSES}\n volumes:\n - ${ULVIA_CONTROL_CREDENTIALS_DIR}:/run/ulvia:ro\n - type: bind\n source: ${ULVIA_FILES_DIR}\n target: /var/lib/cms/files\n ports:\n - \"127.0.0.1:${ULVIA_PROVIDER_PORT}:5103\"\n networks:\n private: {}\n instances:\n aliases:\n - ulvia-provider\n depends_on:\n mongo-provision:\n condition: service_completed_successfully\n read_only: true\n tmpfs:\n - /tmp:rw,nosuid,nodev,noexec,size=256m\n cap_drop: [ALL]\n security_opt: [no-new-privileges:true]\n healthcheck:\n test: [\"CMD\", \"bun\", \"-e\", \"const r=await fetch('http://127.0.0.1:5103/readyz'); if(r.status!==204) process.exit(1); await r.body?.cancel()\"]\n interval: 30s\n timeout: 5s\n retries: 3\n start_period: 10s\n stop_grace_period: 30s\n\nnetworks:\n private:\n name: ${ULVIA_PRIVATE_NETWORK}\n internal: true\n instances:\n name: ${ULVIA_INSTANCE_NETWORK}\n","services-tls.yml":"services:\n proxy:\n ports:\n - \"${ULVIA_BIND_ADDRESS}:${ULVIA_HTTPS_PORT}:443\"\n","mongo/provision-provider.js":"const environment = { ...process.env };\n\nfunction required(name) {\n const value = String(environment[name] ?? \"\").trim();\n if (!value) {\n throw new Error(`Missing ${name}`);\n }\n return value;\n}\n\nconst username = required(\"MONGO_PROVIDER_USERNAME\");\nconst password = required(\"MONGO_PROVIDER_PASSWORD\");\nconst admin = db.getSiblingDB(\"admin\");\nconst existing = admin.getUser(username);\nconst roles = [{ role: \"readWriteAnyDatabase\", db: \"admin\" }];\n\nif (existing) {\n admin.updateUser(username, { pwd: password, roles });\n} else {\n admin.createUser({ user: username, pwd: password, roles });\n}\n"},"digest":"sha256:9cfbb82f85da867b0ad3c2b60979867657ac37ee2250e7aac1b94f5a86896e99"}
|