{"id":15686998,"url":"https://github.com/seb35/nginx-ssl-variables","last_synced_at":"2025-05-07T18:52:22.607Z","repository":{"id":24051429,"uuid":"27437117","full_name":"Seb35/nginx-ssl-variables","owner":"Seb35","description":"Configuration to get access to standard (Apache-compatible) SSL variables in nginx","archived":false,"fork":false,"pushed_at":"2014-12-05T00:27:52.000Z","size":232,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T13:03:48.202Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Seb35.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":"2014-12-02T14:52:29.000Z","updated_at":"2023-11-09T06:18:43.000Z","dependencies_parsed_at":"2022-08-22T08:40:36.345Z","dependency_job_id":null,"html_url":"https://github.com/Seb35/nginx-ssl-variables","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seb35%2Fnginx-ssl-variables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seb35%2Fnginx-ssl-variables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seb35%2Fnginx-ssl-variables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seb35%2Fnginx-ssl-variables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Seb35","download_url":"https://codeload.github.com/Seb35/nginx-ssl-variables/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252939393,"owners_count":21828751,"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":[],"created_at":"2024-10-03T17:42:25.738Z","updated_at":"2025-05-07T18:52:22.583Z","avatar_url":"https://github.com/Seb35.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"nginx SSL variables\n===================\n\nThis creates backward-compatible SSL variables in nginx, compared to Apache mod_ssl module; it is particularly interesting for access to SSL client certificate. A few variables are given by nginx, and some others have to be computed through nginx-Lua with a Lua-OpenSSL interface.\n\nAll available SSL variables are given in the [COMPATIBILITY.md](COMPATIBILITY.md) file with its specifications and current implementation status.\n\nInstalling\n----------\n\n1. Copy the files `*.conf` in your nginx directory `/etc/nginx` (or another non-standard location).\n\n__Soft install:__\n\n2. Include the file `*_ssl_variables.conf` in your web server config corresponding to your gateway (fastcgi, scgi, uwsgi). For instance:\n   ```nginx\n   location ~ \\.php {\n       include fastcgi.conf;\n       include fastcgi_ssl_variables.conf;\n   }\n   ```\n\n3. Depending of your nginx version, uncomment lines where a nginx version is indicated. You can also comment some variables you don’t need.\n4. Reload nginx. It’s ready!\n\n__Complete install:__\n\n2. Be sure you have installed the [nginx Lua package](http://wiki.nginx.org/HttpLuaModule) (available in the Debian/Ubuntu package nginx-extras).\n3. Install the [Lua-OpenSSL interface written by zhaozg](https://github.com/zhaozg/lua-openssl) and be sure it works in the Lua command line.\n4. Include the file `*_ssl_variables_lua.conf` in your web server config corresponding to your gateway (fastcgi, scgi, uwsgi). For instance:\n   ```nginx\n   location ~ \\.php {\n       include fastcgi.conf;\n       include fastcgi_ssl_variables_lua.conf;\n   }\n   ```\n\n5. Depending of your nginx version, uncomment lines where a nginx version is indicated. You can also comment some variables you don’t need.\n6. Reload nginx. It’s ready!\n\nContributing\n------------\n\nDon’t hesit to submit pull requests or open [issues](https://github.com/Seb35/nginx-ssl-variables/issues). When you change files, you only need to change the two files `fastcgi_*.conf`, then use the Bash script `utils/sync_scgi-uwsgi_from_fastcgi.sh` to update the four other files, `scgi_*.conf` and `uwsgi_*.conf`.\n\nI’m not (yet) part of nginx community, and I don’t know if such a patch could/should be added to nginx, neither know the SSL module development policy and roadmap; if you have some advices about that, you can reach me to discuss.\n\nLicence\n-------\n\n* Original author: [Seb35](https://github.com/Seb35)\n* Licence: [WTFPL 2](http://www.wtfpl.net)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseb35%2Fnginx-ssl-variables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseb35%2Fnginx-ssl-variables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseb35%2Fnginx-ssl-variables/lists"}