{"id":16739798,"url":"https://github.com/aloskutov/nginx-ssl-php-db","last_synced_at":"2026-04-07T08:32:40.945Z","repository":{"id":140042251,"uuid":"322772055","full_name":"aloskutov/nginx-ssl-php-db","owner":"aloskutov","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-18T15:22:17.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"db-mariadb","last_synced_at":"2025-03-15T23:24:31.530Z","etag":null,"topics":["adminer","docker","docker-compose","localhost","mariadb","nginx","php-fpm","postgres","postgresql","ssl"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aloskutov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-12-19T05:12:42.000Z","updated_at":"2021-02-15T09:32:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"823cba7f-1715-4a46-a05f-1aa2e8584146","html_url":"https://github.com/aloskutov/nginx-ssl-php-db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aloskutov/nginx-ssl-php-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloskutov%2Fnginx-ssl-php-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloskutov%2Fnginx-ssl-php-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloskutov%2Fnginx-ssl-php-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloskutov%2Fnginx-ssl-php-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aloskutov","download_url":"https://codeload.github.com/aloskutov/nginx-ssl-php-db/tar.gz/refs/heads/db-mariadb","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aloskutov%2Fnginx-ssl-php-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31506562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["adminer","docker","docker-compose","localhost","mariadb","nginx","php-fpm","postgres","postgresql","ssl"],"created_at":"2024-10-13T00:53:54.540Z","updated_at":"2026-04-07T08:32:40.921Z","avatar_url":"https://github.com/aloskutov.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx-ssl-php-db\nLocal development environment: nginx + SSL + php + mariadb + adminer\n\n## Project tree\n\n\u003cpre\u003e\n├───conf\n│   ├───certs\n│   ├───mariadb\n│   ├───nginx\n│   │   └───conf.d\n│   └───php\n├───logs\n│   ├───mariadb\n│   ├───nginx\n│   └───php\n├───mariadb\n└───src\n\u003c/pre\u003e\n\n\n## Docker Images\n+ [PHP:fpm-alpine](https://hub.docker.com/_/php)\n+ [MariaDB](https://hub.docker.com/_/mariadb)\n+ [Nginx:alpine](https://hub.docker.com/_/nginx)\n+ [Adminer](https://hub.docker.com/_/adminer)\n\nThis project use the following ports:\n\n| Server     | Port |\n|------------|------|\n| MariaDB    | 3306 |\n| Adminer    | 8080 |\n| Nginx      |   80 |\n| Nginx SSL  |  433 |\n| PHP-FPM    | 9000 |\n\n\n# SSL for localhost\n\nInstall mkcert.\n\n```shell\nchoco install mkcert\n```\n\nInstall RootCA\n```shell\nmkcert -install\n```\n\nCreate certificates for localhost (or other hostname)\n```shell\nmkcert localhost\n```\n\nCopy them to /conf/certs and change nginx [config](conf/nginx/localhost.conf) options \u003ccode\u003essl_certificate\u003c/code\u003e and \u003ccode\u003essl_certificate_key\u003c/code\u003e\n```nginx\n    ssl_certificate /etc/nginx/certs/localhost.pem;\n    ssl_certificate_key /etc/nginx/certs/localhost-key.pem;\n```\n\n\n## Set localhost certificates in Firefox\n\nManually install the rootCA in firefox through firefox's cert manager (If it is not listed). Prefences -\u003e Privacy \u0026 Security -\u003e Certificates -\u003e View Certificates -\u003e Authorities (Tab) -\u003e Import\n\n![Firefox Certificate Manager](firefox-1.png)\n\nSelect certificate and set trust settings \"Edit Trust...\" -\u003e set \"This certificate can identify websites.\" -\u003e ok\n\n![Edit CA certificate trust settings](firefox-2.png)\n\n---\n\n- [How to Get HTTPS Working in Windows 10 Localhost Dev Environment](https://zeropointdevelopment.com/how-to-get-https-working-in-windows-10-localhost-dev-environment/)\n- [How to create an HTTPS certificate for localhost domains](https://gist.github.com/cecilemuller/9492b848eb8fe46d462abeb26656c4f8)\n- [How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)](https://gist.github.com/cecilemuller/a26737699a7e70a7093d4dc115915de8)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloskutov%2Fnginx-ssl-php-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faloskutov%2Fnginx-ssl-php-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faloskutov%2Fnginx-ssl-php-db/lists"}