Skip to content

Commit 140f079

Browse files
committed
refining
1 parent 7252abd commit 140f079

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ FROM centos:7
33
LABEL maintainer="TeslaGov" email="[email protected]"
44

55
ARG NGINX_VERSION=1.12.0
6-
ARG JANSSON_VERSION=2.10
7-
ARG LIBJWT_VERSION=1.8.0
86

97
COPY resources/nginx.repo /etc/yum.repos.d/nginx.repo
108

@@ -15,6 +13,10 @@ RUN yum -y update && \
1513
yum -y install pcre-devel pcre zlib-devel openssl-devel wget cmake check-devel check && \
1614
yum -y install nginx-$NGINX_VERSION
1715

16+
ARG JANSSON_VERSION=2.10
17+
ARG LIBJWT_VERSION=1.8.0
18+
ARG TESLA_REPO_NAME=ngx-http-auth-jwt-module
19+
1820
# for compiling for rh-nginx110
1921
# yum -y install libxml2 libxslt libxml2-devel libxslt-devel gd gd-devel perl-ExtUtils-Embed
2022

@@ -23,10 +25,10 @@ WORKDIR /root/dl
2325

2426
# get our JWT module
2527
# change this to get a specific version?
26-
RUN wget https://github.com/TeslaGov/ngx-http-auth-jwt-module/archive/master.zip && \
27-
unzip master.zip && \
28-
rm master.zip && \
29-
ln -sf ngx-http-auth-jwt-module-master ngx-http-auth-jwt-module
28+
RUN wget https://github.com/TeslaGov/$TESLA_REPO_NAME/archive/joefitz/match-rh-nginx110-version.zip && \
29+
unzip match-rh-nginx110-version.zip && \
30+
rm match-rh-nginx110-version.zip && \
31+
ln -sf $TESLA_REPO_NAME-joefitz-match-rh-nginx110-version $TESLA_REPO_NAME
3032

3133
# build jansson
3234
RUN wget https://github.com/akheron/jansson/archive/v$JANSSON_VERSION.zip && \

src/ngx_http_auth_jwt_module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ static void * ngx_http_auth_jwt_create_loc_conf(ngx_conf_t *cf);
2222
static char * ngx_http_auth_jwt_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child);
2323
static int hex_char_to_binary( char ch, char* ret );
2424
static int hex_to_binary( const char* str, u_char* buf, int len );
25+
static char * ngx_str_t_to_char_ptr(ngx_pool_t *pool, ngx_str_t str);
2526

2627
static ngx_command_t ngx_http_auth_jwt_commands[] = {
2728

0 commit comments

Comments
 (0)