Skip to content

Commit

Permalink
Added new jwt variant to nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
TimUnderhay authored and neverpanic committed Jun 3, 2018
1 parent 355ca64 commit 58c96c4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion www/nginx/Portfile
Expand Up @@ -30,7 +30,8 @@ master_sites http://nginx.org/download:nginx \
https://github.com/slact/nchan/archive/:http_push_module \
https://github.com/simpl/ngx_devel_kit/archive/:devel_kit_module \
https://github.com/openresty/lua-nginx-module/archive/:lua_module \
https://github.com/openresty/headers-more-nginx-module/archive/:h_more_module
https://github.com/openresty/headers-more-nginx-module/archive/:h_more_module \
https://github.com/TeslaGov/ngx-http-auth-jwt-module/archive/:jwt_module

distfiles ${name}-${version}${extract.suffix}:nginx
checksums ${name}-${version}${extract.suffix} \
Expand Down Expand Up @@ -400,6 +401,19 @@ variant headers_more description {Enable headers-more module (https://github.com
configure.args-append --add-module=${workpath}/${ngx_h_more_distname}
}

variant jwt description {Add JWT (Javascript Web Token) support to server using TeslaGov's ngx-http-auth-jwt-module (https://github.com/TeslaGov/ngx-http-auth-jwt-module)} {
set jwt_filename ngx-http-auth-jwt-module
set jwt_version 0.0.2
set jwt_distname ${jwt_filename}-${jwt_version}
distfiles-append v${jwt_version}.tar.gz:jwt_module
checksums-append v${jwt_version}.tar.gz \
rmd160 7c87e95adcf654f2684e5ce1c932ce56b32b403c \
sha256 2ff4f6ee29cfb708ce215f2f110aa360ba5823ad0355033d7ec2ec39610d5087 \
size 13681
configure.args-append --add-dynamic-module=${workpath}/${jwt_distname}
depends_lib-append port:libjwt
}


livecheck.type regexm
livecheck.url ${homepage}
Expand Down

0 comments on commit 58c96c4

Please sign in to comment.