Skip to content

❓ [Question]: How to debug this Stac conf.extra-directives.d error? #624

@tlvu

Description

@tlvu

Questions

I have another error from another staging server, updating from birdhouse-deploy 1.42.2 to 2.20.1.

Now the proxy do not even start due to the error below. I haven't seen this error in the other staging server (#623).

Both server configs are 99% similar (except hostname, password, path, ...), so this really surprise me.

$ docker logs proxy 2>&1 | tail -3
/docker-entrypoint.sh: Configuration complete; ready for start up
2025/12/19 17:25:11 [emerg] 1#1: invalid number of the map parameters in /etc/nginx/conf.extra-directives.d/stac/stac.conf:6
nginx: [emerg] invalid number of the map parameters in /etc/nginx/conf.extra-directives.d/stac/stac.conf:6

$ cat components/stac/config/proxy/conf.extra-directives.d/stac.conf
    map $http_origin $stac_origin_allowed {
        # default should not be set to the empty string because the cors.include file will interpret
        # that as "unset" and will change it to * by default. To get around this, set this to birdhouse's
        # own origin (which has the same effect as being unset since same-origin requests are already allowed). 
        default https://HOSTNAME_FQDN;
        ~.* ;
    }

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions