diff --git a/docker/copy/config.conf b/docker/copy/config.conf index fbbed9cb8..ae027cd6f 100644 --- a/docker/copy/config.conf +++ b/docker/copy/config.conf @@ -19,9 +19,6 @@ log_session yes log_query no log_stats yes stats_interval 60 -log_general_stats_prom yes -log_route_stats_prom no -promhttp_server_port 7777 workers "auto" resolvers 1 diff --git a/sources/config_reader.c b/sources/config_reader.c index 0ba688a0d..9869f15cf 100644 --- a/sources/config_reader.c +++ b/sources/config_reader.c @@ -2643,6 +2643,12 @@ static int od_config_reader_parse(od_config_reader_t *reader, continue; } case OD_LPROMHTTP_PORT: { +#ifndef PROMHTTP_FOUND + od_config_reader_error( + reader, &token, + "promhttp_server_port read failed PROMHTTP_FOUND not set"); + goto error; +#endif int port; if (!od_config_reader_number(reader, &port)) goto error;