From ffc1e86c86a3473a30f63f17082fdc0b0b439c28 Mon Sep 17 00:00:00 2001 From: Trammell Hudson Date: Tue, 13 Dec 2022 19:50:02 +0000 Subject: [PATCH] nginx: list the available modules --- nginx.yaml | 2 ++ nginx/default.conf | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nginx.yaml b/nginx.yaml index ea252c8..e9d72f8 100644 --- a/nginx.yaml +++ b/nginx.yaml @@ -12,6 +12,8 @@ services: - "80:80" - "443:443" - "8448:8448" + environment: + - MODULES=${MODULES} env_file: - ./env.production volumes: diff --git a/nginx/default.conf b/nginx/default.conf index bcb2d14..f9e4d75 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -41,10 +41,12 @@ server { # should send them to the main page location / { default_type text/html; - return 200 ' + return 404 '

Unknown hostname "$host"

-Try ${DOMAIN_NAME} instead +

Try ${DOMAIN_NAME} instead +

Sub-sites enabled: ${MODULES} +

 $request
 Host: $host