{"id":20872755,"url":"https://github.com/zalari/docker-nginx-html5-env","last_synced_at":"2025-07-30T04:08:46.418Z","repository":{"id":81977609,"uuid":"218026859","full_name":"zalari/docker-nginx-html5-env","owner":"zalari","description":"NGINX enabled for HTML5 mode for SPAs and with ENV magic","archived":false,"fork":false,"pushed_at":"2019-10-28T12:56:39.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"develop","last_synced_at":"2025-03-12T15:50:41.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/zalari.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}},"created_at":"2019-10-28T11:01:46.000Z","updated_at":"2019-10-28T12:56:34.000Z","dependencies_parsed_at":"2023-03-12T14:29:26.055Z","dependency_job_id":null,"html_url":"https://github.com/zalari/docker-nginx-html5-env","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zalari/docker-nginx-html5-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Fdocker-nginx-html5-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Fdocker-nginx-html5-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Fdocker-nginx-html5-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Fdocker-nginx-html5-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zalari","download_url":"https://codeload.github.com/zalari/docker-nginx-html5-env/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Fdocker-nginx-html5-env/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267808142,"owners_count":24147367,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-18T06:20:45.817Z","updated_at":"2025-07-30T04:08:46.369Z","avatar_url":"https://github.com/zalari.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## nginx-html5-env\nThis is a simple nginx image that enables html-5-mode style urls, by redirecting all request to a single file. This use case is typical for single page apps, that are doing all the routing on the client-side.\n\nConfiguration is _inspired_ by https://gist.github.com/cjus/b46a243ba610661a7efb .\n\nFurthermore it is able to generate or merge a config.json depending on the `environment`.\n\n## Example usage\nThis is image is intended to be used as a base image:\n\n```\nFROM zalari/nginx-html5-env\n\nENV ENV_PREFIX=ZALARI\nENV CONFIG_NAME=config.json\n\nCOPY ./app/dist /usr/share/nginx/html/\nCOPY config.json /usr/share/nginx/html/\n```\n\nThen all environment variables passed to the **container** (e.g. via `docker run --rm -p 80:80 -e ZALARI_test='true' \nzalari/nginx-html5-env` \nhaving the **ZALARI** prefix will be used to generate / be merged into `/usr/share/nginx/html/config.json` and should be available at \nhttp://localhost/config.json.\n\nThere is a syntax for accessing nested values; have a look at [init/jsonenv.sh](./init/jsonenv.sh) for the actual logic for the lack of a\n better documentation for the time being.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzalari%2Fdocker-nginx-html5-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzalari%2Fdocker-nginx-html5-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzalari%2Fdocker-nginx-html5-env/lists"}