Skip to content
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

Pre-process deb app config settings #5608

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

codyebberson
Copy link
Member

Nginx sub_filter only supports one search/replace operation per request. You can't chain them together.

There's an unofficial 3rd party nginx extension that would support it (https://github.com/yaoweibin/ngx_http_substitutions_filter_module) but it has a ton of security implications, so I'm going to punt on that one for now.

Instead, this PR pre-processes the config settings directly into the .js files.

Pros: it works, faster, less complicated

Cons: this makes it harder to change config settings later, and will basically require a re-install of app. I think that's ok for now, we still have a lot of details to figure out here.

@codyebberson codyebberson requested a review from a team as a code owner December 1, 2024 22:47
Copy link

vercel bot commented Dec 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
medplum-provider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 1, 2024 10:47pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
medplum-app ⬜️ Ignored (Inspect) Dec 1, 2024 10:47pm
medplum-storybook ⬜️ Ignored (Inspect) Dec 1, 2024 10:47pm
medplum-www ⬜️ Ignored (Inspect) Dec 1, 2024 10:47pm

Copy link

sonarqubecloud bot commented Dec 1, 2024

@codyebberson codyebberson merged commit fdfe4df into main Dec 1, 2024
34 checks passed
@codyebberson codyebberson deleted the cody-fix-deb-app-config-settings branch December 1, 2024 22:58
medplumbot added a commit that referenced this pull request Dec 2, 2024
## What's Changed

* Add automatic retry of transaction serialization errors after rollback (#5553)
* Document resend operation parameters (#5556)
* Script to deploy app to GCP (#5505)
* Document extensions for preferred pharmacy (#5557)
* feat(server): add `Bot.timeout`, sync timeout on `Bot/$deploy` (#5559)
* Include AHC HRSN Screening to foomedical (#5564)
* Docs for install on GCP (#5563)
* types(generator): validate `fhirtypes` after generation (#5544)
* Fix grammar error on scheduling index. (#5569)
* Allow cancellation of reindex job (#5565)
* fix(AsyncJob): use `systemRepo` for cancel (#5577)
* Add excluded IDs to search pagination cursor (#5582)
* Add Postgres upgrade blog post (#5547)
* feat(AsyncJob): support `AsyncJob` cancel via DELETE on `Content-Location`  (#5587)
* Update grammar on homepagecallout component (#5570)
* Correct oauth2 default paths (#5591)
* Show only one offline notification at a time (#5583)
* overflow wrap (#5574)
* Use strict equality check in tests (#5595)
* Update to include how to test agent in docker (#5598)
* Update index.md (#5596)
* Dependency upgrades 2024-11-25 (#5588)
* Fixes #5590 - cleanup default URLs in server config (#5592)
* Fix CPOE acronym (#5571)
* Rename "Solutions Engineer" to "Forward Deployed engineer" (#5600)
* Fixed APT repository codenames (#5605)
* Fix the deb app nginx config (#5606)
* Fix app config settings in deb package (#5607)
* Pre-process deb app config settings (#5608)
* OAuthPage UI customizations (#5601)
* deps(server): override `whatwg-url` to rm `punycode`  warning (#5611)
* Dependency upgrades 2024-12-02 (#5609)
* fix(core): allow raw buf and views in arrayBuffer fns (#5599)
* Migration generation improvements (#5589)

**Full Changelog**: v3.2.23...v3.2.24
github-merge-queue bot pushed a commit that referenced this pull request Dec 2, 2024
## What's Changed

* Add automatic retry of transaction serialization errors after rollback (#5553)
* Document resend operation parameters (#5556)
* Script to deploy app to GCP (#5505)
* Document extensions for preferred pharmacy (#5557)
* feat(server): add `Bot.timeout`, sync timeout on `Bot/$deploy` (#5559)
* Include AHC HRSN Screening to foomedical (#5564)
* Docs for install on GCP (#5563)
* types(generator): validate `fhirtypes` after generation (#5544)
* Fix grammar error on scheduling index. (#5569)
* Allow cancellation of reindex job (#5565)
* fix(AsyncJob): use `systemRepo` for cancel (#5577)
* Add excluded IDs to search pagination cursor (#5582)
* Add Postgres upgrade blog post (#5547)
* feat(AsyncJob): support `AsyncJob` cancel via DELETE on `Content-Location`  (#5587)
* Update grammar on homepagecallout component (#5570)
* Correct oauth2 default paths (#5591)
* Show only one offline notification at a time (#5583)
* overflow wrap (#5574)
* Use strict equality check in tests (#5595)
* Update to include how to test agent in docker (#5598)
* Update index.md (#5596)
* Dependency upgrades 2024-11-25 (#5588)
* Fixes #5590 - cleanup default URLs in server config (#5592)
* Fix CPOE acronym (#5571)
* Rename "Solutions Engineer" to "Forward Deployed engineer" (#5600)
* Fixed APT repository codenames (#5605)
* Fix the deb app nginx config (#5606)
* Fix app config settings in deb package (#5607)
* Pre-process deb app config settings (#5608)
* OAuthPage UI customizations (#5601)
* deps(server): override `whatwg-url` to rm `punycode`  warning (#5611)
* Dependency upgrades 2024-12-02 (#5609)
* fix(core): allow raw buf and views in arrayBuffer fns (#5599)
* Migration generation improvements (#5589)

**Full Changelog**: v3.2.23...v3.2.24
ianplunkett pushed a commit that referenced this pull request Dec 11, 2024
## What's Changed

* Add automatic retry of transaction serialization errors after rollback (#5553)
* Document resend operation parameters (#5556)
* Script to deploy app to GCP (#5505)
* Document extensions for preferred pharmacy (#5557)
* feat(server): add `Bot.timeout`, sync timeout on `Bot/$deploy` (#5559)
* Include AHC HRSN Screening to foomedical (#5564)
* Docs for install on GCP (#5563)
* types(generator): validate `fhirtypes` after generation (#5544)
* Fix grammar error on scheduling index. (#5569)
* Allow cancellation of reindex job (#5565)
* fix(AsyncJob): use `systemRepo` for cancel (#5577)
* Add excluded IDs to search pagination cursor (#5582)
* Add Postgres upgrade blog post (#5547)
* feat(AsyncJob): support `AsyncJob` cancel via DELETE on `Content-Location`  (#5587)
* Update grammar on homepagecallout component (#5570)
* Correct oauth2 default paths (#5591)
* Show only one offline notification at a time (#5583)
* overflow wrap (#5574)
* Use strict equality check in tests (#5595)
* Update to include how to test agent in docker (#5598)
* Update index.md (#5596)
* Dependency upgrades 2024-11-25 (#5588)
* Fixes #5590 - cleanup default URLs in server config (#5592)
* Fix CPOE acronym (#5571)
* Rename "Solutions Engineer" to "Forward Deployed engineer" (#5600)
* Fixed APT repository codenames (#5605)
* Fix the deb app nginx config (#5606)
* Fix app config settings in deb package (#5607)
* Pre-process deb app config settings (#5608)
* OAuthPage UI customizations (#5601)
* deps(server): override `whatwg-url` to rm `punycode`  warning (#5611)
* Dependency upgrades 2024-12-02 (#5609)
* fix(core): allow raw buf and views in arrayBuffer fns (#5599)
* Migration generation improvements (#5589)

**Full Changelog**: v3.2.23...v3.2.24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants