idealista / nginx_role

Ansible role to install nginx http and reverse proxy server
7 stars 2 forks source link

Support lua/metrics for debian 10 #70

Closed jmonterrubio closed 4 years ago

jmonterrubio commented 4 years ago

Prerequisites

Description

Nginx make step fails with an error because of lua-nginx-module. For v0.10.13 the error is: error: cast between incompatible function types from 'size_t ()(ngx_http_lua_script_engine_t )' {aka 'long unsigned int ()(struct )'} to 'void ()(ngx_http_lua_script_engine_t )' {aka 'void ()(struct )'} [-Werror=cast-function-type]

For v0.10.15 the error is: fatal error: luajit.h: No such file or directory

Steps to Reproduce

  1. Use a debian 10 environment to install nginx
  2. Enable metrics using nginx_prometheus_metrics_enabled: true
  3. Include the lua nginx module:

    nginx_external_modules:

Versions

2.2.0