php / systems

Hooks and Cronjobs for PHP Infrastructure
http://php.net
51 stars 29 forks source link

Add config files for some services on 'qa' box #25

Closed jimwins closed 3 months ago

jimwins commented 4 months ago

These reference "secrets" that are kept outside VC in /local/secrets on the box, until we have another strategy for managing secrets.

The qa.php.net config is http-only in anticipation of putting that behind Myra protection and to avoid having to keep track of SSL config here.

jimwins commented 3 months ago

I'm not quite sure whether this now reflects what's on the server too?

Yes, it's all consistent with how these services are configured now. Once this is merged, I'll actually move the old files out of the way and symlink into /local/systems for these, and switch the crontab setup to use cron-box.

derickr commented 3 months ago

OK - would you mind adding a script under qa.php.net to make these symlinks / copying the cron-box file automatically perhaps? That way, that is also reproducible.

Other than that, this looks good to me, but I'm still a little apprehensive of merging this :-).

jimwins commented 3 months ago

OK - would you mind adding a script under qa.php.net to make these symlinks / copying the cron-box file automatically perhaps? That way, that is also reproducible.

Sure, I added qa/install-config.sh. It backs up the existing files (and crontab) to a directory in /tmp and then loads the new crontab and links the new config files into place. Only the backup part has been tested.

Other than that, this looks good to me, but I'm still a little apprehensive of merging this :-).

Should be easy to fix any problems that crop up, the config isn't all that complicated.

derickr commented 3 months ago

I've merged this, but I am not sure how wise it is to have these READMEs for servers in here, as it is bound to get out of date really quickly.