Closed ma-gu-16 closed 1 month ago
Hi,
im getting the following error:
admin.api request error {"error": "host not allowed: api.sub.mydomain.com", "status_code": 403}
while i try to connect to mercure.
my config:
{ debug {$GLOBAL_OPTIONS} admin 10.10.xx.xx:2019 skip_install_trust local_certs auto_https off }
{$CADDY_EXTRA_CONFIG}
https://api.sub.mydomain.com:2019 { log { format filter { fields { request>uri query { replace authorization REDACTED } } } }
encode zstd gzip mercure { transport_url {$MERCURE_TRANSPORT_URL:bolt://mercure.db} publisher_jwt xxxxxxx subscriber_jwt xxxxxx publish_origins https://api.sub.mydomain.com http://api.sub.mydomain.com cors_origins https://api.sub.mydomain.com http://api.sub.mydomain.com {$MERCURE_EXTRA_DIRECTIVES} } {$CADDY_SERVER_EXTRA_DIRECTIVES} log_skip /robots.txt log_skip /healthz log_skip /favicon.ico respond /healthz 200 respond "Not Found" 404
}
Edit: its not possible to make a codeblock around the config :(
with this global conf it works:
{ debug {$GLOBAL_OPTIONS} admin 10.10.xx.xx:2019 { origins https://api.sub.mydomain.com } skip_install_trust local_certs auto_https off }
Hi,
im getting the following error:
admin.api request error {"error": "host not allowed: api.sub.mydomain.com", "status_code": 403}
while i try to connect to mercure.
my config:
{ debug {$GLOBAL_OPTIONS} admin 10.10.xx.xx:2019 skip_install_trust local_certs auto_https off }
{$CADDY_EXTRA_CONFIG}
https://api.sub.mydomain.com:2019 { log { format filter { fields { request>uri query { replace authorization REDACTED } } } }
}
Edit: its not possible to make a codeblock around the config :(