nginx: list the available modules

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

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

@ -41,10 +41,12 @@ server {
# should send them to the main page # should send them to the main page
location / { location / {
default_type text/html; default_type text/html;
return 200 '<html> return 404 '<html>
<body> <body>
<h1>Unknown hostname "$host"</h1> <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"> <pre style="white-space: pre-wrap">
$request $request
Host: $host Host: $host

Loading…
Cancel
Save