From 79c19fef2bc398bd5baab6d05af56fc97c84ed14 Mon Sep 17 00:00:00 2001 From: Andre Cobham Date: Mon, 8 Jun 2026 20:01:29 +0200 Subject: [PATCH] bake htpasswd into image, remove coming-soon route and template --- Dockerfile | 3 +- infra/nginx.conf | 2 - src/api/router.php | 1 - src/api/templates/coming-soon.php | 124 ------------------------------ 4 files changed, 1 insertion(+), 129 deletions(-) delete mode 100755 src/api/templates/coming-soon.php diff --git a/Dockerfile b/Dockerfile index 89e86d1..d497785 100755 --- a/Dockerfile +++ b/Dockerfile @@ -27,8 +27,7 @@ COPY src/api/templates /var/www/html/api/templates/ COPY src/api/components /var/www/html/api/components/ COPY src/api/data /var/www/html/api/data/ -ARG HTPASSWD_HASH -RUN echo "bigbreath:${HTPASSWD_HASH}" > /etc/nginx/.htpasswd +RUN echo 'bigbreath:$apr1$sTejUunq$56jg.DmHWEqrg7cbge2a20' > /etc/nginx/.htpasswd RUN chown -R www-data:www-data /var/www/html \ && echo 'expose_php = Off' > /usr/local/etc/php/conf.d/security.ini diff --git a/infra/nginx.conf b/infra/nginx.conf index d1f9994..02c70ef 100755 --- a/infra/nginx.conf +++ b/infra/nginx.conf @@ -87,8 +87,6 @@ server { location ~ ^/events/([a-z0-9-]+)/?$ { rewrite ^/events/([a-z0-9-]+)/?$ /api/router.php?type=event_detail&slug=$1 last; } - location = /coming-soon { rewrite ^ /api/router.php?type=coming_soon last; } - location = /coming-soon/ { rewrite ^ /api/router.php?type=coming_soon last; } location = /contact { rewrite ^ /api/router.php?type=contact last; } location = /contact/ { rewrite ^ /api/router.php?type=contact last; } location = /privacy-policy { rewrite ^ /api/router.php?type=legal&slug=privacy-policy last; } diff --git a/src/api/router.php b/src/api/router.php index 79cfe48..901bdd4 100755 --- a/src/api/router.php +++ b/src/api/router.php @@ -13,7 +13,6 @@ switch ($type) { case 'gallery': require __DIR__ . '/templates/gallery.php'; break; case 'events': require __DIR__ . '/templates/events.php'; break; case 'event_detail': require __DIR__ . '/templates/event-detail.php'; break; - case 'coming_soon': require __DIR__ . '/templates/coming-soon.php'; break; case 'legal': require __DIR__ . '/templates/legal.php'; break; default: require __DIR__ . '/templates/home.php'; break; } diff --git a/src/api/templates/coming-soon.php b/src/api/templates/coming-soon.php deleted file mode 100755 index 93216fd..0000000 --- a/src/api/templates/coming-soon.php +++ /dev/null @@ -1,124 +0,0 @@ -query("SELECT * FROM events WHERE published=1 ORDER BY starts_at ASC")->fetchAll(PDO::FETCH_ASSOC); -require __DIR__ . '/../components/_header.php'; -?> - -
-
- Coming Soon -
-

Big Breath

-

We are excited for our website.

-

Ignite the inner fire. Master the breath. The full Big Breath experience is on the way. Join the list to be the first to know.

-
-
- -
-
- Join Joe - Upcoming Events -
-

In a room near you.

- -
- -
- -
-
-
- -

-


-

- -
-
- -
- -
-
-
- -
-
- Stay Connected -
-

Be the first breath.

-

Drop your name and email. We will let you know when bigbreath.co launches and when Big Joe is in your city.

- -
- -
- - -
-
- - -
-
- - -
- -
-
-
- - - - - -