-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consolidate local/prod nginx conf & deploy scripts #3571
Comments
Suggested first-step, collapse all our htaccess into one file. This aligned with what needs to happen for nginx (which has no concept of per-folder config) EDIT: Discussed in backlog grooming (tristan, vachan, brinda, patcon), and realized that this is best left to another issue. |
Since we do need different configs (i think) I don't think we can get away with having only one file. But, we could have a common file so we don't need to duplicate similar definitions and then use include to add the additional items for each env. |
Looks like the differences are...
|
Is it really necessary to never cache locally? Especially if we keep cache times reasonably short, eg 1 minute. I like @esizer's suggestion of a comment file and include statements for the extra blocks. Would be easier if we referenced env variables on local in the same places we do in the prod script. |
I'd like to continue to keep them separate. They're never going to match exactly and as long as the two files live close together it's easy enough to diff them and make sure they don't drift apart. If we start dynamically building them it will just make it harder to read and manage them. |
Fair enough. |
Split off from #2834
We now have two nearly ngnix config files:
infrastructure/conf/nginx-conf-deploy/default
andinfrastructure/conf/nginx-conf-local/default
. The former is used by Azure DevOps, the latter by our local dev Docker container. It would be preferable to maintain only a single file. (We could use ENV:APP_ENV as a condition for certain rewrites if we only want them available locally.)Screenshot
Possible Implementation
Acceptance Criteria
The text was updated successfully, but these errors were encountered: