Skip to content

Commit

Permalink
build static »NGINX JavaScript« module w/ »QuickJS« support
Browse files Browse the repository at this point in the history
  • Loading branch information
agebhar1 committed Oct 6, 2024
1 parent fb28304 commit fb145d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions roles/nginx/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
dependencies:
- role: njs
- role: owasp_modsecurity_crs
- role: quickjs
6 changes: 3 additions & 3 deletions roles/nginx/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
- name: Get current configuration hash.
ansible.builtin.set_fact:
nginx_build_configuration_hash_current: |-
v1:{{
v2:{{
(nginx_build_configuration + ['nginx_modsecurity_debug=' + (nginx_modsecurity_debug | string | lower)])
| sort
| ansible.builtin.md5
Expand Down Expand Up @@ -112,8 +112,8 @@
chdir: "{{ nginx_src_directory }}/nginx/{{ nginx_version }}"
vars:
configuration:
- --with-cc-opt=-I/usr/include -I{{ nginx_user_home }}/include {{ '-DMODSECURITY_DDEBUG=1' if nginx_modsecurity_debug }}
- --with-ld-opt=-L/usr/lib64 -L{{ nginx_user_home }}/lib -ldl -Wl,-rpath,/usr/lib64
- --with-cc-opt=-I/usr/include -I{{ nginx_user_home }}/include -I{{ nginx_user_home }}/include/quickjs {{ '-DMODSECURITY_DDEBUG=1' if nginx_modsecurity_debug }} # yamllint disable rule:line-length
- --with-ld-opt=-L/usr/lib64 -L{{ nginx_user_home }}/lib -L{{ nginx_user_home }}/lib/quickjs -ldl -Wl,-rpath,/usr/lib64
- --conf-path={{ nginx_user_home }}/etc/nginx/nginx.conf
- --error-log-path={{ nginx_user_home }}/var/log/nginx/error.log
- --http-client-body-temp-path={{ nginx_user_home }}/var/run/nginx/client_body_temp
Expand Down

0 comments on commit fb145d5

Please sign in to comment.