{"id":21474940,"url":"https://github.com/wayfair/ngx_http_txtset","last_synced_at":"2025-08-25T21:12:48.861Z","repository":{"id":5988026,"uuid":"7210384","full_name":"wayfair/ngx_http_txtset","owner":"wayfair","description":"ngx_http_txtset module ","archived":false,"fork":false,"pushed_at":"2023-12-15T02:24:36.000Z","size":8,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-25T19:02:18.039Z","etag":null,"topics":["nginx"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wayfair.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-12-17T19:02:48.000Z","updated_at":"2022-12-09T04:31:03.000Z","dependencies_parsed_at":"2023-12-15T03:29:43.324Z","dependency_job_id":"b967e32c-afee-4c2f-9f70-45ad922cd4a3","html_url":"https://github.com/wayfair/ngx_http_txtset","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/wayfair/ngx_http_txtset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayfair%2Fngx_http_txtset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayfair%2Fngx_http_txtset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayfair%2Fngx_http_txtset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayfair%2Fngx_http_txtset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wayfair","download_url":"https://codeload.github.com/wayfair/ngx_http_txtset/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayfair%2Fngx_http_txtset/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261937022,"owners_count":23232843,"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":["nginx"],"created_at":"2024-11-23T10:35:19.749Z","updated_at":"2025-06-25T19:02:38.907Z","avatar_url":"https://github.com/wayfair.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"ngx_http_txtset module\n\nFirst directive: txtset\n\nDescription:\n\n\"txtset\" is similar to \"set\" found in the http rewrite module, except that the value to store in the variable isn't provided directly in the directive call, but rather in a text file passed to the directive.  If the text file cannot be read, or the value read from the text file contains invalid characters, a default value passed to the directive will be loaded as the value for the variable.  The directive reads a maximum of 20 characters from the file as the value to set.  The variable value is cached for 10 seconds by default to prevent excessive disk reads to the text file.  This time can be changed with an optional fourth parameter to the directive.\n\nValid locations for usage of directive:  NGX_HTTP_SRV_CONF|NGX_HTTP_SIF_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF\n\nUsage:\n\ntxtset $vartoset /path/to/txt/file \"DefaultValue\" cache_time;\n\n$vartoset: the variable to be added\n\n/path/to/txt/file: path to a text file containing the desired value to load into $vartoset\n\n\"DefaultValue\": the value that $vartoset will take when reading the value from /path/to/txt/file fails or contains invalid characters\n\tValid characters: (A-Z) (a-z) (0-9) - _\n\ncache_time: optional fourth parameter to set the cache time of $vartoset.  Default is 10 seconds if argument is not provided.\n\nExample of use case: \ndynamic document root directory for switching between various software revisions\n\n\n\nSecond directive: txtlower\n\nDescription:\n\ntxtlower takes the value of a given variable and stores the lowercase version of the variable in a new variable.\n\nValid locations for usage of directive: NGX_HTTP_SRV_CONF|NGX_HTTP_SIF_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF\n\nUsage:\n\ntxtlower $input_var $output_var;\n\n$input_var: variable containing the value to be lowercase\n\n$output_var: variable to store lowercase value from $input_var\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayfair%2Fngx_http_txtset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwayfair%2Fngx_http_txtset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayfair%2Fngx_http_txtset/lists"}