Add Domain option to Log so that a custom domain can be specified #1
Reference in New Issue
Block a user
Delete Branch "custom-domain"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add Domain option to Log so that a custom domain can be specified :)
I agree that hard coding *.ct.ipng.ch was a mistake, but I don't want another config option 'Domain' because we already have the monitoringprefix and submissionprefix. I think you can extract that hostname between
https://(.*)/instead.That saves a redundant/repetitive config field, and removes ambiguity (is it mon.ct.ipng.ch or log.ct.ipng.ch?)
Should we then not simply have ShortName (halloumi2025h2) + Domain (ct.ipng.ch) and generate MonitoringPrefix + SubmissionPrefix from there? That is if we always put things in log + mon anyway and no path in the prefixes.
Or take the MonitoringPrefix, extract the ShortName + 'mon' subdomain, the remainder of of the hostname being the Domain?
(these are simple patches, thus will rebase the others when we settle on the answer ;) )
No, the origin is equal to the submissionprefix. You can simply replace the string directly like that, in other words, if
submissionprefix: https://bla.example.com/then the origin will bebla.example.com.Further, you cannot hardcode 'mon' and 'log' either because those are choices we made for Cheese, not to be expected to be shared by everybody.
Lastly, I do not want to drift from the Sunlight yaml format if we can avoid it.
Why don't you synthesize a Log[i].Origin from submissionprefix and use that instead? Take a look at this diff to see what I have in mind as a counter offer.
I've decided to merge my diff instead of this approach, in
0503370. This PR can be reverted.Pull request closed