feat: add duration parameter for QR code generation and local dev setup#59
Open
adithya1012 wants to merge 1 commit intomieweb:mainfrom
Open
feat: add duration parameter for QR code generation and local dev setup#59adithya1012 wants to merge 1 commit intomieweb:mainfrom
adithya1012 wants to merge 1 commit intomieweb:mainfrom
Conversation
…ted logic - Docker-compose dev file for local development.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
QR Upload —
durationparameterDemo:
https://youtube.com/shorts/JJxZMVX99Rs
The mobile app requires a
durationhint when receiving an upload deeplink. This PR addsduration=180(seconds) as a query parameter appended to thepulsecam://deeplink encoded into the upload QR code.Changes:
durationto the/qr/deeplinkquerystring schema (default180), appended it to theURLSearchParamsbefore building the deeplink URL, and included it in the JSON response.&duration=180when calling the backend/qr/deeplinkendpoint fromgenerateUploadQRCode().Resulting deeplink format:
Dev Docker Compose (docker-compose.dev.yml)
The existing docker-compose.yml targets production (Proxmox/LXC) and was missing PostgreSQL entirely. Running it locally caused Redis
ECONNREFUSED 127.0.0.1:6379becauseREDIS_HOSTdefaulted tolocalhostinside the container instead of the Docker service name.Changes:
REDIS_HOST: redisexplicitly set on backend and worker (fixes theECONNREFUSEDconnection error)5432,6379,3000,3001,8080,9090,3100)DATABASE_URLandBACKEND_URLpre-wired between servicesHMAC_SECRET,BETTER_AUTH_SECRET)Usage: