2024-09-11 08:45:07 -06:00
2024-09-11 08:45:07 -06:00
2024-09-11 05:50:06 -06:00
2024-09-11 08:45:07 -06:00
2024-09-11 08:45:07 -06:00
2024-09-08 05:43:26 -06:00
2024-09-11 05:42:59 -06:00
2024-09-11 08:45:07 -06:00
2024-09-11 05:42:59 -06:00
2024-09-11 05:42:59 -06:00
2024-09-11 05:55:55 -06:00

ytdlp-site

go mod tidy
export YTDLP_SITE_ADMIN_INITIAL_PASSWORD=abc123
export YTDLP_SITE_SESSION_AUTH_KEY=v9qpt37hc4qpmhf
go run *.go

Environment Variables

  • YTDLP_SITE_ADMIN_INITIAL_PASSWORD: password of the admin account, if the account does not exist
  • YTDLP_SITE_SESSION_AUTH_KEY: admin-selected secret key for the cookie store

Docker

docker build -t server .

docker run --rm -it \
  -p 3000:8080 \
  --env YTDLP_SITE_ADMIN_INITIAL_PASSWORD=abc123 \
  --env YTDLP_SITE_SESSION_AUTH_KEY=avowt7n8 \
  server

docker run --rm -it \
  -p 3000:8080 \
  --env YTDLP_SITE_DATA_DIR=/data \
  --env YTDLP_SITE_CONFIG_DIR=/config \
  --env YTDLP_SITE_ADMIN_INITIAL_PASSWORD=abc123 \
  -v $(realpath data):/data \
  server

GHCR Deploy

Build and push this container to ghcr

  • Create a "personal access token (classic)" with write:packages
    • account > settings > developer settings > personal access tokens > tokens (classic) > generate new token (classic)
  • Put that personal access token as the repository actions secret GHCR_TOKEN.
Description
No description provided
Readme 187 KiB
Languages
Go 71.3%
HTML 15.9%
JavaScript 6%
CSS 4.2%
Shell 1.5%
Other 1.1%