What is CustomConfig Git?
CustomConfig git is a private git repository available on every stack in your Cloud 66 account. This git repository is hosted by Cloud 66 and allows you to modify CustomConfig files for your stack using familiar git commands.
If you are familiar with CustomConfig you know how it can be a powerful tool to customise configuration for Nginx or HAProxy. The easiest way to modify CustomConfig files is through the UI. However if you would like to edit CustomConfig files in your favourite editor or enjoy git merge and flow control features you can use CustomConfig git.
Getting Started with CustomConfig git
Each stack on Cloud 66 has its own private CustomConfig git repository. You can find the URL of this repository under stack’s information page (right hand side menu). There you will find a URL like this for CustomConfig git:
Uploading your SSH public key
Like any other git repository, CustomConfig git requires a public SSH key for authentication. If you are not familiar with how git SSH key authentication works or how to generate your own SSH keys, you can read this great guide by Github: Git SSH key setup.
You can upload your public SSH key at Account / Keys / Public Key when logged into your Cloud 66 account.
Making changes to CustomConfig files
To make a change to a CustomConfig file you need to first clone the stack’s CustomConfig git repository locally. Using git commandline this is possible with something like this:
$ git clone email@example.com:warmhearted-wondrous-tiger-9262.git
This will clone the CustomConfig git repository for the first time to your disk under a folder called
Now you can
cd to this folder and see the list of files available to edit. By default, CustomConfig git repository contains all the CustomConfig files that are relevant to your stack. For example, if you are using HAProxy as load balancer, you will see
haproxy.conf as one of the files there. You might also see
nginx.conf since you will always have web servers on your stack.
Now open the file you want to change in your favourite text editor. Once done, save the file and commit your changes like any normal git workflow:
$ git commit -m "increate nginx pool size" $ git push origin master
CustomConfig git workflow
It’s important to know when your changes are going to be pushed to your servers.
Changes made in CustomConfig UI
Any changes made to CustomConfig files in the UI will be applied to CustomConfig git repository as well.
Changing a CustomConfig file in the UI will be pushed to your servers immediately unless there is a merge conflict with what’s in the repository.
Changes made through CustomConfig git
Changes made to CustomConfig git files will NOT be pushed to your servers until the next stack deployment. This is prevent unwanted changes go live during a normal gil workflow.
One of the most powerful features of CustomConfig is the automatic updates that are applied to your stacks. For example if there is an improvement in the way nginx is configured or a security patch is released to HAProxy which requires configuration change, Cloud 66 will automatically make those changes to your CustomConfig files.
This is done by committing the changes to the CustomConfig git repository by Cloud 66. Those changes are visible on your git history and are performed by