fix(cookies): mount youtube/instagram cookies from host instead of baking into image
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 1m45s
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 1m45s
Cookies baked into the image (COPY . .) required a full CI/CD rebuild to refresh, incompatible with the cron job on the fedora machine that re-extracts cookies from a logged-in browser every 20 minutes and scp's them to prod. Volume-mount the cookies file instead — yt-dlp reads it from disk per request, so a fresh scp takes effect immediately with no container restart. The image-baked copy still exists as a build-time fallback. Also refresh the committed cookies snapshot (the cron's source yt-dlp turned out to be missing on the fedora box, so prior commits had been carrying years-stale cookies without anyone noticing).
This commit is contained in:
parent
6df47f3082
commit
b3550f4aaf
4 changed files with 116 additions and 58 deletions
|
|
@ -42,6 +42,7 @@ services:
|
|||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./youtube-downloader/downloads:/app/downloads
|
||||
- ./youtube-downloader/youtube_cookies.txt:/app/youtube_cookies.txt
|
||||
environment:
|
||||
- YOUTUBE_COOKIES_FILE=/app/youtube_cookies.txt
|
||||
- PORT=5557
|
||||
|
|
@ -55,6 +56,7 @@ services:
|
|||
network_mode: host
|
||||
volumes:
|
||||
- ./instagram-downloader/downloads:/app/downloads
|
||||
- ./instagram-downloader/instagram_cookies.txt:/app/instagram_cookies.txt
|
||||
environment:
|
||||
- INSTAGRAM_COOKIES_FILE=/app/instagram_cookies.txt
|
||||
- PORT=5556
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue