diff --git a/apps/drone/dcape-app/Makefile b/apps/drone/dcape-app/Makefile index faae271..da159c5 100644 --- a/apps/drone/dcape-app/Makefile +++ b/apps/drone/dcape-app/Makefile @@ -34,12 +34,6 @@ PGDATABASE_EXRA ?= # User who runs DB_INIT_SQL and creates PGDATABASE_EXRA PG_ADMIN ?= postgres -ifeq ($(USE_TLS),false) -HTTP_PROTO ?= http -else -HTTP_PROTO ?= https -endif - # ------------------------------------------------------------------------------ # .env template define CONFIG_DEF @@ -90,6 +84,13 @@ export -include $(CFG) export +# calculate values after includes +ifeq ($(USE_TLS),false) +HTTP_PROTO ?= http +else +HTTP_PROTO ?= https +endif + .PHONY: all up down dc .docker-wait db-create db-drop psql init config .drone-default help all: help