mirror of
https://github.com/openappsec/attachment.git
synced 2025-11-15 08:52:17 +03:00
7e8e141c53f47a8256da58c7b21ba20bfd92be65
attachment
NGINX attachment compilation instructions
Compiling this repository
- Clone this repository
- Run CMake command (we recommand something like
cmake -DCMAKE_INSTALL_PREFIX=<output path> <repository path>). - From the repositoy directory run
make install
For example:
$ git clone https://github.com/openappsec/attachment.git
$ cd attachment/
$ cmake -DCMAKE_INSTALL_PREFIX=build_out .
$ make install
For the NGINX plugin
Grab the nginx source code from nginx.org, for example, the version 1.23.0 (see nginx compatibility), and then build the source with this module:
$ module_path=/absolute/path/to/attachment
$ wget 'http://nginx.org/download/nginx-1.23.0.tar.gz'
$ tar -xzvf nginx-1.23.0.tar.gz
$ cd nginx-1.23.0/
$ ./configure --add-dynamic-module=$module_path --with-cc-opt="-I $module_path/core/include/attachments"
$ make modules
NGINX plugin associated libraries
The NGINX plugin uses these libraries: shmem_ipc, compression_utils, and nginx_attachment_util.
They can be found under the lib directory in the <output path> given to the CMake.
Description
Attachments connect between processes that provide HTTP data and the open-appsec Agent security logic.
Languages
C
81.6%
Go
7%
C++
3.9%
Python
2.6%
Lua
1.8%
Other
3.1%