Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Adding or updating services

Ryan Ewen edited this page Feb 16, 2019 · 4 revisions

Updating service URLs to cache

  1. Update the Dnsmasq conf file (data/conf/<relevant-service>.dnsmasq.conf) with the new URLs to be handled by the caching machine.
  2. Update the approriate NGINX conf (data/conf/<relevant-service>.nginx.conf) with the same URLs to cache.
  3. Recreate the containers to pull in the changed conf files (doesn't remove cache or rebuild the docker images):
    docker-compose up -d --force-recreate
    

Adding a new service to cache

  1. Create a new Dnsmasq conf file (data/conf/<new-service>.dnsmasq.conf) with the new URLs to be handled by the caching machine. I suggest using origin.dnsmasq.conf as a template.
  2. Create a new NGINX conf (data/conf/<new-service>.nginx.conf) with the same URLs to cache. I suggest using origin.nginx.conf as a template.
  3. Create a new cache subdirectory (data/cache/<new-service>) with a .gitignore file and make sure the proxy_cache_path setting in your new NGINX conf matches.
  4. Recreate the containers to pull in the changed conf files (doesn't remove cache or rebuild the docker images):
    docker-compose up -d --force-recreate
    
Clone this wiki locally