Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 0b21ff6a9e7618575db804f7033f1111ac166ca2 @eliast committed Apr 8, 2009
Showing with 756 additions and 0 deletions.
  1. +41 −0 README
  2. +21 −0 config
  3. +694 −0 ngx_http_uuid_filter_module.c
41 README
@@ -0,0 +1,41 @@
+Nginx UUID filter
+--
+
+Description:
+--
+
+Issues identifying cookies. Based on ngx_http_userid_filter_module except that uses libuuid
+to generate random uuids AND encodes the ids in 32-bit hex format as opposed to base64 encoded.
+
+Installation:
+--
+
+You'll need to re-compile Nginx from source to include this module.
+Modify your compile of Nginx by adding the following directive
+(modified to suit your path of course):
+
+./configure --add-module=/absolute/path/to/nginx-uuid-filter
+make
+make install
+
+
+Usage:
+--
+
+Add to your Nginx config file's http block the following directives:
+
+ # Use UUID Module for cookie generation and tracking
+ uuid on;
+ uuid_name cookie_name;
+ uuid_domain .example.com;
+ uuid_path /;
+ uuid_expires max;
+ uuid_p3p 'CP="NOI CUR ADM OUR NOR STA NID"';
+
+Contributing:
+--
+
+Git source repositories:
+http://github.com/eliast/nginx-uuid-filter/tree/master
+
+Please feel free to fork the project at GitHub and submit pull requests or patches.
21 config
@@ -0,0 +1,21 @@
+ngx_feature="uuid library"
+ngx_feature_name=
+ngx_feature_run=no
+ngx_feature_incs="#include <uuid/uuid.h>"
+ngx_feature_path=
+ngx_feature_libs="-luuid"
+ngx_feature_test=
+. auto/feature
+
+if [ $ngx_found = yes ]; then
+ ngx_addon_name=ngx_http_uuid_filter_module
+ # This module must be added after the log module
+ HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_uuid_filter_module"
+ NGX_ADDON_SRCS="$NGX_ADDON_SRCS ${ngx_addon_dir}/ngx_http_uuid_filter_module.c"
+ CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
+else
+ cat << END
+$0: error: unable to configure the ngx_http_uuid_filter_module.
+END
+ exit 1
+fi
Oops, something went wrong.

0 comments on commit 0b21ff6

Please sign in to comment.