Pass ACME root CA to dev config generation
The dev-config Make target was missing the ACME_ROOT_CA env var, causing probod to fail with an untrusted certificate error when connecting to the local Pebble ACME server. Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -161,7 +161,7 @@ $(CFG_DEV_OAUTH2_KEY):
|
|||||||
@$(MKDIR) $(@D)
|
@$(MKDIR) $(@D)
|
||||||
$(OPENSSL) genrsa -out $@ 2048
|
$(OPENSSL) genrsa -out $@ 2048
|
||||||
|
|
||||||
cfg/dev.yaml: bin/probod-bootstrap $(CFG_DEV_OAUTH2_KEY) $(wildcard $(DEV_ENV))
|
cfg/dev.yaml: bin/probod-bootstrap $(CFG_DEV_OAUTH2_KEY) compose/pebble/certs/rootCA.pem $(wildcard $(DEV_ENV))
|
||||||
@$(MKDIR) $(@D)
|
@$(MKDIR) $(@D)
|
||||||
set -a; \
|
set -a; \
|
||||||
PROBOD_ENCRYPTION_KEY="thisisnotasecretAAAAAAAAAAAAAAAAAAAAAAAAAAA="; \
|
PROBOD_ENCRYPTION_KEY="thisisnotasecretAAAAAAAAAAAAAAAAAAAAAAAAAAA="; \
|
||||||
@@ -175,6 +175,7 @@ cfg/dev.yaml: bin/probod-bootstrap $(CFG_DEV_OAUTH2_KEY) $(wildcard $(DEV_ENV))
|
|||||||
AWS_ENDPOINT=http://127.0.0.1:8333; \
|
AWS_ENDPOINT=http://127.0.0.1:8333; \
|
||||||
OPENAI_API_KEY=thisisnotasecret; \
|
OPENAI_API_KEY=thisisnotasecret; \
|
||||||
ACME_DIRECTORY=https://localhost:14000/dir; \
|
ACME_DIRECTORY=https://localhost:14000/dir; \
|
||||||
|
ACME_ROOT_CA="$$($(CAT) compose/pebble/certs/rootCA.pem)"; \
|
||||||
if [ -f $(DEV_ENV) ]; then . $(DEV_ENV); fi; \
|
if [ -f $(DEV_ENV) ]; then . $(DEV_ENV); fi; \
|
||||||
set +a; \
|
set +a; \
|
||||||
./bin/probod-bootstrap -output $@
|
./bin/probod-bootstrap -output $@
|
||||||
|
|||||||
Reference in New Issue
Block a user