Skip to content

Commit

Permalink
add modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdifarzadi committed Jan 3, 2024
0 parents commit 00a6a1e
Show file tree
Hide file tree
Showing 3 changed files with 2,790 additions and 0 deletions.
43 changes: 43 additions & 0 deletions config
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
ngx_addon_name=ngx_http_armigate_shield_module

ARM_AUTH_MODULE="ngx_http_armigate_auth_module"
ARM_AUTH_SRC="$ngx_addon_dir/ngx_http_armigate_auth_module.c"

ARM_SHIELD_MODULE="ngx_http_armigate_shield_module"
ARM_SHIELD_SRC="$ngx_addon_dir/ngx_http_armigate_shield_module.c"

if [ "$ngx_module_link" = DYNAMIC ]; then

ngx_module_name="$ARM_AUTH_MODULE"
ngx_module_srcs="$ARM_AUTH_SRC"
. auto/module

ngx_module_name="$ARM_SHIELD_MODULE"
ngx_module_srcs="$ARM_SHIELD_SRC"
. auto/module

elif [ "$ngx_module_link" = ADDON ]; then
ngx_module_type=HTTP
ngx_module_name=$ARM_AUTH_MODULE
ngx_module_srcs=$ARM_AUTH_SRC
. auto/module

ngx_module_type=HTTP
ngx_module_name=$ARM_SHIELD_MODULE
ngx_module_srcs=$ARM_SHIELD_SRC
. auto/module

else
HTTP_MODULES="$HTTP_MODULES $ARM_AUTH_MODULE $ARM_SHIELD_MODULE"

NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ARM_AUTH_SRC $ARM_SHIELD_SRC"
fi

if [ $USE_PCRE = DISABLED ]; then
cat << END
$0: warning: the Armigate module require PCRE for MIME based filtering, \
you can use it without PCRE but some feature is missed.
END
else
USE_PCRE=YES
fi
Loading

0 comments on commit 00a6a1e

Please sign in to comment.