Skip to content

Commit 4122e12

Browse files
committed
Revert "fix: set HTTP_PROTO after include"
This reverts commit cb3bc76.
1 parent cb3bc76 commit 4122e12

File tree

5 files changed

+11
-27
lines changed

5 files changed

+11
-27
lines changed

Makefile

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ DCAPE_NET_INTRA ?= $(DCAPE_TAG)_intra
1313
DCAPE_DOMAIN ?= dev.lan
1414
APPS_ALWAYS ?= traefik narra enfist drone portainer
1515
TZ ?= $(shell cat /etc/timezone)
16-
PG_IMAGE ?= postgres:15.2
16+
PG_IMAGE ?= postgres:13.5-alpine
1717
PG_DB_PASS ?= $(shell < /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c14; echo)
1818
PG_ENCODING ?= en_US.UTF-8
1919
PG_PORT_LOCAL ?= 5433
@@ -210,19 +210,6 @@ dc: docker-compose.yml
210210
-p $$DCAPE_TAG --env-file $(CFG) \
211211
$(CMD)
212212

213-
dc-new:
214-
@docker compose \
215-
-p $$DCAPE_TAG --env-file $(CFG) \
216-
$(CMD)
217-
218-
dc-old:
219-
@docker run --rm -t -i \
220-
-v /var/run/docker.sock:/var/run/docker.sock \
221-
-v $$PWD:$$PWD -w $$PWD \
222-
$(DCAPE_TAG)-compose \
223-
-p $$DCAPE_TAG --env-file $(CFG) \
224-
$(CMD)
225-
226213
# ------------------------------------------------------------------------------
227214
## Database commands
228215
#:

apps/drone/dcape-app/Makefile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ PGDATABASE_EXRA ?=
3434
# User who runs DB_INIT_SQL and creates PGDATABASE_EXRA
3535
PG_ADMIN ?= postgres
3636

37+
ifeq ($(USE_TLS),false)
38+
HTTP_PROTO ?= http
39+
else
40+
HTTP_PROTO ?= https
41+
endif
3742

3843
# ------------------------------------------------------------------------------
3944
# .env template
@@ -85,14 +90,6 @@ export
8590
-include $(CFG)
8691
export
8792

88-
# calculate values after includes
89-
90-
ifeq ($(USE_TLS),false)
91-
HTTP_PROTO ?= http
92-
else
93-
HTTP_PROTO ?= https
94-
endif
95-
9693
.PHONY: all up down dc .docker-wait db-create db-drop psql init config .drone-default help
9794

9895
all: help

apps/drone/dcape-app/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Base docker-compose config for single application
22

3-
version: '3.4'
3+
version: '2'
44

55
services:
66
app:
@@ -10,7 +10,7 @@ services:
1010
- dcape.traefik.tag=${DCAPE_TAG}
1111
- traefik.http.routers.${APP_TAG}.rule=Host(`${APP_SITE:?Must be set}`)
1212
- traefik.http.routers.${APP_TAG}.tls=${USE_TLS}
13-
- traefik.http.routers.${APP_TAG}.tls.certresolver=stepca
13+
- traefik.http.routers.${APP_TAG}.tls.certresolver=letsEncrypt
1414
volumes:
1515
- /etc/timezone:/etc/timezone:ro
1616
- /etc/localtime:/etc/localtime:ro

apps/portainer/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file included by ../../Makefile
33
SHELL = /bin/bash
44
# Docker image version
5-
PORTAINER_VER0 ?= 2.11.1-alpine
5+
PORTAINER_VER0 ?= 2.15.1-alpine
66
# Config vars are described below in section `define CONFIG_...`
77
PORTAINER_HOST ?= port.$(DCAPE_DOMAIN)
88
PORTAINER_VER ?= $(PORTAINER_VER0)

apps/traefik/traefik.acme.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ certificatesResolvers:
3636
# caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
3737
dnsChallenge:
3838
provider: pdns
39-
# httpChallenge:
40-
# entryPoint: web
39+
httpChallenge:
40+
entryPoint: web
4141

4242
providers:
4343
docker:

0 commit comments

Comments
 (0)