From 1d8779872237615736db910ea3b4e33a950da469 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Sat, 18 Jul 2026 17:47:55 +0200 Subject: [PATCH] removed diun, removed https redirect handled by traefik --- docker-compose.yml | 15 ++------------- env.example | 12 ++---------- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e8ad3e2..87fbc9c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,27 +7,16 @@ services: ### Section Træfik - traefik.enable=${TRAEFIK_ENABLED} - traefik.docker.network=${TRAEFIK_NETWORK} - ## HTTP - - traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http - # redirect to HTTPS only - - traefik.http.routers.http-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_HTTP_MIDDLEWARES} - - traefik.http.routers.http-${TRAEFIK_ROUTER}.rule=${TRAEFIK_MATCHRULE} - ## HTTPS + # HTTPS - traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https # configure the exposed service - - traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_HTTPS_MIDDLEWARES} + - traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_MIDDLEWARES} - traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=${TRAEFIK_MATCHRULE} # enable TLS and its certificate provider - traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=${TRAEFIK_TLSENABLED} - traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=${TRAEFIK_CERTRESOLVER} # specify a service so a custom port can be used - traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT} - ### Section Diun - - diun.enable=${DIUN_NGINX_ENABLE} - - diun.watch_repo=${DIUN_NGINX_WATCHREPO} - - diun.sort_tags=${DIUN_NGINX_SORTALGO} - - diun.include_tags=${DIUN_NGINX_INCLUDE} - - diun.exclude_tags=${DIUN_NGINX_EXCLUDE} volumes: - ${NGINX_CONFIG}:/etc/nginx/nginx.conf - ${NGINX_SITECONFIG}:/etc/nginx/conf.d/default.conf diff --git a/env.example b/env.example index 005e0d7..72c2858 100644 --- a/env.example +++ b/env.example @@ -7,18 +7,10 @@ TRAEFIK_SERVICE_PORT=80 TRAEFIK_MATCHRULE=Host(`app.example.com`) TRAEFIK_TLSENABLED=true TRAEFIK_CERTRESOLVER=letsencrypt -TRAEFIK_HTTP_MIDDLEWARES=http-to-https -TRAEFIK_HTTPS_MIDDLEWARES=hsts - -# Diun -DIUN_NGINX_ENABLE=true -DIUN_NGINX_WATCHREPO=true -DIUN_NGINX_SORTALGO=semver -DIUN_NGINX_INCLUDE=[0-9]\.[0-9]\.[0-9]-alpine -DIUN_NGINX_EXCLUDE= +TRAEFIK_MIDDLEWARES=hsts # Nginx -NGINX_VERSION=1.22.0-alpine +NGINX_VERSION=alpine NGINX_DATA=./data/httpdocs NGINX_CONFIG=./data/nginx.conf NGINX_SITECONFIG=./data/site.conf