Review of design as of d7dc7ed7
Discussed between @ayufan and @jacobvosmaer.
- the way of storing CNAMEs as individual files will keep working as we grow but it will get very slow probably as we reach 10,000-100,000 pages
- CNAME's should be stored in the GitLab SQL DB and validated for uniqueness
- first version of CNAME SSL support should just use key+cert uploads in GitLab, and validate: validity, subject (CNAME match), cert/key match, cert chain completeness
- there is non-safe pointer update for the domains map in the current code. This can be fixed with sync.RWMutex or atomic.StorePointer