nginx: list the available modules

single-dockerfile
Trammell Hudson 1 year ago
parent 9cd24aca9b
commit ffc1e86c86
  1. 2
      nginx.yaml
  2. 6
      nginx/default.conf

@ -12,6 +12,8 @@ services:
- "80:80"
- "443:443"
- "8448:8448"
environment:
- MODULES=${MODULES}
env_file:
- ./env.production
volumes:

@ -41,10 +41,12 @@ server {
# should send them to the main page
location / {
default_type text/html;
return 200 '<html>
return 404 '<html>
<body>
<h1>Unknown hostname "$host"</h1>
Try <a href="https://${DOMAIN_NAME}/">${DOMAIN_NAME}</a> instead
<p>Try <a href="https://${DOMAIN_NAME}/">${DOMAIN_NAME}</a> instead
<p>Sub-sites enabled: ${MODULES}
<pre style="white-space: pre-wrap">
$request
Host: $host

Loading…
Cancel
Save