{"id":28370316,"url":"https://github.com/vozlt/nginx-module-udc","last_synced_at":"2026-05-19T06:03:10.542Z","repository":{"id":25541253,"uuid":"28974064","full_name":"vozlt/nginx-module-udc","owner":"vozlt","description":"Nginx module to compare the value of user-defined variables and request.","archived":false,"fork":false,"pushed_at":"2017-03-21T08:39:52.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T07:25:32.776Z","etag":null,"topics":["c","example-code","nginx","nginx-module","vozlt-nginx-modules"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vozlt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-08T16:14:24.000Z","updated_at":"2025-03-12T15:18:12.000Z","dependencies_parsed_at":"2022-07-24T06:01:53.901Z","dependency_job_id":null,"html_url":"https://github.com/vozlt/nginx-module-udc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vozlt/nginx-module-udc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vozlt%2Fnginx-module-udc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vozlt%2Fnginx-module-udc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vozlt%2Fnginx-module-udc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vozlt%2Fnginx-module-udc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vozlt","download_url":"https://codeload.github.com/vozlt/nginx-module-udc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vozlt%2Fnginx-module-udc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261362148,"owners_count":23147345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","example-code","nginx","nginx-module","vozlt-nginx-modules"],"created_at":"2025-05-29T06:09:03.160Z","updated_at":"2026-05-19T06:03:05.505Z","avatar_url":"https://github.com/vozlt.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Nginx module to compare the value of user-defined variables and request.(test module)\n==========\n\n[![License](http://img.shields.io/badge/license-BSD-brightgreen.svg)](https://github.com/vozlt/nginx-module-udc/blob/master/LICENSE)\n\nThis is my first nginx test module for understanding nginx module development.\n\nA nginx module to compare the value of user-defined variables and request.\n\n## Dependencies\n* nginx\n\n## Compatibility\n* 1.7.x (last tested: 1.7.8)\n* 1.6.x (last tested: 1.6.2)\n\nEarlier versions is not tested.\n\n## Installation\n\n1. Clone the git repository.\n\n  ```\n  shell\u003e git clone git://github.com/vozlt/nginx-module-udc.git\n  ```\n\n2. Add the module to the build configuration by adding \n  `--add-module=/path/to/nginx-module-udc`\n\n3. Build the nginx binary.\n\n4. Install the nginx binary.\n\n## Synopsis\n\n```Nginx\nlocation /user-define-check {\n    user_define_check;\n    user_define_check_out_type      json;\n    user_define_check_allow_text    \"true\";\n    user_define_check_deny_text     \"false\";\n    user_define_check_agent         \"USER_DEFINED_0\";\n    user_define_check_agent         \"USER_DEFINED_1\";\n    user_define_check_agent         \"USER_DEFINED_2\";\n}\n```\n\n## Description\nThis is an Nginx module that compare the value of user-defined variables and value of request.\nThis module returns the compared result to string that is specific type.\n\nThe types as follows:\n* JSON\n* TEXT\n\n## Directives\n\n### user_define_check\n\n| -   | - |\n| --- | --- |\n| **Syntax**  | user_define_check |\n| **Default** | - |\n| **Context** | server, location |\n\nDescription: Enables or disables user_define_check function.\n\n### user_define_check_out_type\n\n| -   | - |\n| --- | --- |\n| **Syntax**  | user_define_check_out_type [json\\|text] |\n| **Default** | json |\n| **Context** | server, location |\n\nDescription: The output type of result.\n\n### user_define_check_allow_text\n \n| -   | - |\n| --- | --- |\n| **Syntax**  | user_define_check_allow_text \u003c*user-defined-string*\u003e |\n| **Default** | true |\n| **Context** | server, location |\n\nDescription: The string of success result.\n\n### user_define_check_deny_text\n\n| -   | - |\n| --- | --- |\n| **Syntax**  | user_define_check_deny_text \u003c*user-defined-string*\u003e |\n| **Default** | false |\n| **Context** | server, location |\n\nDescription: The string of failure result.\n\n### user_define_check_agent\n\n| -   | - |\n| --- | --- |\n| **Syntax**  | user_define_check_agent \u003c*user-defined-string*\u003e |\n| **Default** | - |\n| **Context** | server, location |\n\nDescription: The string to check.\n\n## Testing\n\n```\nshell\u003e (echo -en \"GET /user-define-check?USER_DEFINED_0 HTTP/1.1\\r\\nHost:localhost\\r\\n\\r\\n\"; sleep 1) | nc localhost 80\n```\n```\n{\"status\":\"true\"}\n```\n\n```\nshell\u003e (echo -en \"GET /user-define-check?USER_DEFINED_3 HTTP/1.1\\r\\nHost:localhost\\r\\n\\r\\n\"; sleep 1) | nc localhost 80\n```\n```\n{\"status\":\"false\"}\n```\n\n## Author\nYoungJoo.Kim [\u003cvozltx@gmail.com\u003e]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvozlt%2Fnginx-module-udc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvozlt%2Fnginx-module-udc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvozlt%2Fnginx-module-udc/lists"}