{"id":19219235,"url":"https://github.com/chassis/media_fallback","last_synced_at":"2026-06-15T12:32:26.036Z","repository":{"id":68352387,"uuid":"273126195","full_name":"Chassis/media_fallback","owner":"Chassis","description":"If an image request within the VM 404s, try retrieving the image from another server.","archived":false,"fork":false,"pushed_at":"2022-05-02T20:30:20.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-14T12:05:22.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Puppet","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/Chassis.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-06-18T02:46:57.000Z","updated_at":"2022-05-02T20:30:24.000Z","dependencies_parsed_at":"2023-02-26T00:30:09.367Z","dependency_job_id":null,"html_url":"https://github.com/Chassis/media_fallback","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chassis/media_fallback","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chassis%2Fmedia_fallback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chassis%2Fmedia_fallback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chassis%2Fmedia_fallback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chassis%2Fmedia_fallback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chassis","download_url":"https://codeload.github.com/Chassis/media_fallback/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chassis%2Fmedia_fallback/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34363538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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-09T14:30:05.785Z","updated_at":"2026-06-15T12:32:26.011Z","avatar_url":"https://github.com/Chassis.png","language":"Puppet","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Media Fallback\n\nThis [Chassis extension](https://docs.chassis.io/en/latest/extend/) adds an [Nginx](https://www.nginx.com/) rule within your Chassis virtual machine to fall back to production URLs for any local media request which fails with a \"404 not found\" error. This allows you to run a fully functional virtual machine with a much smaller backup of the `uploads/` folder than would normally be necessary, because any image which is not available locally within the VM can then be requested from a live site instead.\n\n## Usage\n\n1. Clone this into the `extensions` folder of your Chassis installation, or list `chassis/media_fallback` in your [Chassis configuration file's extensions list](https://docs.chassis.io/en/latest/config/#extensions).\n2. Add a `media_fallback:` key to your configuration file specifying the URI for a deployed environment's content folder (example below).\n3. Run `vagrant up` if you have not yet initialized your virtual machine, or `vagrant provision` if your VM is already up and running.\n\nA request to an image path within your VM that 404s should now attempt to retrieve that image from production (or staging, etcetera, depending on configuration).\n\n## Example Configuration\n\nThe value of the `media_fallback` key should always be the path to a content folder within a deployed site.\n\nAssuming you are creating a local environment for the website `https://example.com`, which uses the standard WordPress directory path `wp-content`, you may enable your VM to fall back to this site with the following configuration:\n\n```yaml\n# config.local.yaml\n\nmedia_fallback: 'https://example.com/wp-content'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchassis%2Fmedia_fallback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchassis%2Fmedia_fallback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchassis%2Fmedia_fallback/lists"}