Rejigger subdirectory hosting
This commit is contained in:
parent
52d9deef82
commit
2fa0fa324a
|
@ -1,10 +1,8 @@
|
||||||
TYPE=custom-html-tiny
|
TYPE=custom-html-tiny
|
||||||
|
|
||||||
DOMAIN=custom-html.example.com
|
DOMAIN={{ .Domain }}
|
||||||
## Domain aliases
|
|
||||||
#EXTRA_DOMAINS=', `www.custom-html.example.com`'
|
|
||||||
LETS_ENCRYPT_ENV=production
|
LETS_ENCRYPT_ENV=production
|
||||||
|
HTTP_SUBDIR=
|
||||||
COMPOSE_FILE="compose.yml"
|
COMPOSE_FILE="compose.yml"
|
||||||
|
|
||||||
# Single Sign On via Traefik "file provider"
|
# Single Sign On via Traefik "file provider"
|
||||||
|
@ -14,4 +12,3 @@ COMPOSE_FILE="compose.yml"
|
||||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.git-pull.yml"
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.git-pull.yml"
|
||||||
#GIT_REPO_URL="https://git.coopcloud.tech/dalmationer/hexbomb.gay"
|
#GIT_REPO_URL="https://git.coopcloud.tech/dalmationer/hexbomb.gay"
|
||||||
#CRON_SCHEDULE="*/1 * * * *"
|
#CRON_SCHEDULE="*/1 * * * *"
|
||||||
#GIT_REPO_SUBDIR=""
|
|
||||||
|
|
|
@ -3,11 +3,10 @@ services:
|
||||||
git:
|
git:
|
||||||
environment:
|
environment:
|
||||||
- GIT_REPO_URL
|
- GIT_REPO_URL
|
||||||
- GIT_REPO_SUBDIR
|
|
||||||
image: alpine/git:v2.32.0
|
image: alpine/git:v2.32.0
|
||||||
entrypoint: /docker-entrypoint.sh
|
entrypoint: /docker-entrypoint.sh
|
||||||
volumes:
|
volumes:
|
||||||
- content:/git/${GIT_REPO_SUBDIR}
|
- content:/git
|
||||||
configs:
|
configs:
|
||||||
- source: entrypoint_conf
|
- source: entrypoint_conf
|
||||||
target: /docker-entrypoint.sh
|
target: /docker-entrypoint.sh
|
||||||
|
|
13
compose.yml
13
compose.yml
|
@ -20,10 +20,13 @@ services:
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||||
- "coop-cloud.${STACK_NAME}.version=1.2.1+1.21.6"
|
- "coop-cloud.${STACK_NAME}.version=1.2.1+1.21.6"
|
||||||
#environment:
|
environment:
|
||||||
|
- HTTP_SUBDIR
|
||||||
volumes:
|
volumes:
|
||||||
- content:/var/www/http
|
- content:/var/www/http
|
||||||
#configs:
|
configs:
|
||||||
|
- source: thttpd.conf
|
||||||
|
target: /etc/thttpd.conf
|
||||||
#healthcheck:
|
#healthcheck:
|
||||||
# test: ["CMD", "curl", "-f", "http://localhost"]
|
# test: ["CMD", "curl", "-f", "http://localhost"]
|
||||||
# interval: 30s
|
# interval: 30s
|
||||||
|
@ -37,3 +40,9 @@ volumes:
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
configs:
|
||||||
|
thttpd_conf:
|
||||||
|
name: ${STACK_NAME}_thttpd_conf_${THTTPD_DEFAULT_CONF_VERSION}
|
||||||
|
file: thttpd.conf
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
dir=/var/www/http/{{env "HTTP_SUBDIR"}}
|
||||||
|
vhost
|
||||||
|
chroot
|
||||||
|
user=thttpd
|
||||||
|
cgipat=**.cgi
|
||||||
|
logfile=/var/log/thttpd/thttpd.log
|
||||||
|
pidfile=/var/run/thttpd.pid
|
||||||
|
charset=utf-8
|
Loading…
Reference in New Issue