commit 7a76c1d9fe38c5fc06e91a886a05657f1cb7e8af Author: Andreas Pieper Date: Fri Feb 27 15:45:18 2026 +0000 init proj diff --git a/.env b/.env new file mode 100644 index 0000000..dbd2c07 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +DOMAIN_MAIN=gzl.lan64.de +TITLE="Ground Zero Lab" diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..79fd450 --- /dev/null +++ b/compose.yml @@ -0,0 +1,27 @@ +services: + webpage: + image: nginx:alpine + container_name: webpage + restart: unless-stopped + environment: + - TITLE=${TITLE} + - DOMAIN_MAIN=${DOMAIN_MAIN} + - NGINX_ENVSUBST_OUTPUT_DIR=/usr/share/nginx/html + volumes: + # Wir mounten das Template - Nginx macht daraus beim Start die echte index.html + - ./html/index.html.template:/etc/nginx/templates/index.html.template:ro + #- ./html/crl.pem:/var/www/html/crl.pem:ro + - ./html/crl.pem:/usr/share/nginx/html/crl.pem:ro + #- ./nginx/crl.conf:/etc/nginx/conf.d/crl.conf:ro + networks: + - proxy + labels: + - "traefik.enable=true" + - "traefik.http.routers.webpage.rule=Host(`${DOMAIN_MAIN}`)" + - "traefik.http.routers.webpage.entrypoints=websecure" + - "traefik.http.routers.webpage.tls.certresolver=myresolver" + - "traefik.http.services.webpage.loadbalancer.server.port=80" + +networks: + proxy: + external: true \ No newline at end of file diff --git a/html/index.html.template b/html/index.html.template new file mode 100644 index 0000000..af3b503 --- /dev/null +++ b/html/index.html.template @@ -0,0 +1,60 @@ + + + + + + ${TITLE} Dashboard + + + +
+

${TITLE}

+ + +
+ + \ No newline at end of file