Skip to content

getting "the map directive is not allowed here" error message when using hsts #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
haumanto opened this issue Jan 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@haumanto
Copy link

Current Behavior

container using hsts receiving this error message during validation.

Expected Behavior

no error message

Steps To Reproduce

No response

Environment

  • OS:
  • OS version:
  • CPU:
  • Docker version:
  • Device model:
  • Browser/OS:

Container creation

version: '3.8'
services:
app:
image: 'lepresidente/nginxproxymanager:latest'
restart: unless-stopped
ports:
# These ports are in format :
- '80:80' # Public HTTP Port
- '443:443' # Public HTTPS Port
- '81:81' # Admin Web Port
# Add any other Stream port you want to expose
# - '21:21' # FTP

# Uncomment the next line if you uncomment anything in the section
# environment:
  # Uncomment this if you want to change the location of
  # the SQLite DB file within the container
  # DB_SQLITE_FILE: "/data/database.sqlite"

  # Uncomment this if IPv6 is not enabled on your host
  # DISABLE_IPV6: 'true'

volumes:
  - ./data:/data
  - ./letsencrypt:/etc/letsencrypt

environment:
  DISABLE_IPV6: 'true'

healthcheck:
  test: ["CMD", "/bin/check-health"]
  interval: 10s
  timeout: 3s

Container log

app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41
app-1  | ❯ Starting nginx ...
app-1  | nginx: [emerg] "map" directive is not allowed here in /data/nginx/proxy_host/43.conf:41

Container inspect

No response

Anything else?

No response

@haumanto haumanto added the bug Something isn't working label Jan 30, 2024
@haumanto
Copy link
Author

there's already a temporary fix here NginxProxyManager/nginx-proxy-manager#3478

@LePresidente
Copy link
Owner

i'll do this patch manually in my build script i'll do a build in a couple of hours when my machine is less busy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants