@fabioplunser/epd 0.5.3 → 0.5.4
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/cli.js +4 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -834,13 +834,13 @@ function validateCrossReferences(cfg) {
|
|
|
834
834
|
const seen = new Map;
|
|
835
835
|
for (const svc of cfg.services) {
|
|
836
836
|
for (const route of svc.routes) {
|
|
837
|
-
if (route.entrypoint && !entrypointNames.includes(route.entrypoint)) {
|
|
837
|
+
if (cfg.proxy.enabled && route.entrypoint && !entrypointNames.includes(route.entrypoint)) {
|
|
838
838
|
fail(`epd.yml.servers.${svc.name}.routes`, `entrypoint "${route.entrypoint}" is not defined`, `Define it under proxy.entrypoints, e.g.
|
|
839
839
|
proxy:
|
|
840
840
|
entrypoints:
|
|
841
841
|
${route.entrypoint}: 8080`);
|
|
842
842
|
}
|
|
843
|
-
if (route.ssl && !cfg.proxy.ssl) {
|
|
843
|
+
if (cfg.proxy.enabled && route.ssl && !cfg.proxy.ssl) {
|
|
844
844
|
fail(`epd.yml.servers.${svc.name}.routes`, "route requests TLS but proxy.ssl is false");
|
|
845
845
|
}
|
|
846
846
|
for (const host of route.hosts) {
|
|
@@ -863,7 +863,7 @@ function validateCrossReferences(cfg) {
|
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
if (cfg.proxy.ssl && cfg.proxy.challenge !== "dns" && !cfg.proxy.email) {
|
|
866
|
+
if (cfg.proxy.enabled && cfg.proxy.ssl && cfg.proxy.challenge !== "dns" && !cfg.proxy.email) {
|
|
867
867
|
const anySsl = cfg.services.some((s) => s.routes.some((r) => r.ssl));
|
|
868
868
|
if (anySsl)
|
|
869
869
|
fail("epd.yml.proxy.email", "is required for Let's Encrypt certificates", `proxy:
|
|
@@ -6464,7 +6464,7 @@ async function promptAutoUpdate(currentVersion) {
|
|
|
6464
6464
|
}
|
|
6465
6465
|
|
|
6466
6466
|
// src/version.ts
|
|
6467
|
-
var VERSION = "0.5.
|
|
6467
|
+
var VERSION = "0.5.4";
|
|
6468
6468
|
|
|
6469
6469
|
// src/commands/update.ts
|
|
6470
6470
|
var update = {
|
package/package.json
CHANGED