Skip to content

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

Open
@haumanto

Description

@haumanto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions