- updated more files to be up-to-date with domain change.
- 7.4 changelog.
- updated docker compose example with watchtower and cobalt image.
This commit is contained in:
wukko 2023-09-09 22:31:24 +06:00
parent 5fb23dae65
commit 572dc20e41
6 changed files with 35 additions and 22 deletions

View file

@ -1,6 +1,6 @@
# cobalt # cobalt
Best way to save what you love. Best way to save what you love.
Live web app: [co.wukko.me](https://co.wukko.me/) Live web app: [cobalt.tools](https://cobalt.tools/)
![cobalt logo with repeated logo pattern background](https://raw.githubusercontent.com/wukko/cobalt/current/src/front/icons/pattern.png "cobalt logo with repeated logo pattern background") ![cobalt logo with repeated logo pattern background](https://raw.githubusercontent.com/wukko/cobalt/current/src/front/icons/pattern.png "cobalt logo with repeated logo pattern background")

View file

@ -2,7 +2,7 @@ version: '3.5'
services: services:
cobalt-api: cobalt-api:
build: . image: ghcr.io/wukko/cobalt:latest
restart: unless-stopped restart: unless-stopped
container_name: cobalt-api container_name: cobalt-api
@ -24,8 +24,11 @@ services:
#- cookiePath=cookies.json #- cookiePath=cookies.json
# see src/modules/processing/cookie/cookies_example.json for example file. # see src/modules/processing/cookie/cookies_example.json for example file.
labels:
- com.centurylinklabs.watchtower.scope=cobalt
cobalt-web: cobalt-web:
build: . image: ghcr.io/wukko/cobalt:latest
restart: unless-stopped restart: unless-stopped
container_name: cobalt-web container_name: cobalt-web
@ -40,6 +43,17 @@ services:
environment: environment:
- webPort=9001 - webPort=9001
# replace webURL with your instance's target url in same format # replace webURL with your instance's target url in same format
- webURL=https://co.wukko.me/ - webURL=https://cobalt.tools/
# replace apiURL with preferred api instance url # replace apiURL with preferred api instance url
- apiURL=https://co.wuk.sh/ - apiURL=https://co.wuk.sh/
labels:
- com.centurylinklabs.watchtower.scope=cobalt
# update the cobalt image automatically with watchtower
watchtower:
image: ghcr.io/containrrr/watchtower
restart: unless-stopped
command: --cleanup --scope cobalt --interval 900
volumes:
- /var/run/docker.sock:/var/run/docker.sock

View file

@ -4,8 +4,7 @@ This document provides info about methods and acceptable variables for all cobal
``` ```
⚠️ Main API instance has moved to https://co.wuk.sh/ ⚠️ Main API instance has moved to https://co.wuk.sh/
Previous API domain will stop redirecting users to correct API instance after July 25th. Make sure your projects use the correct API domain.
Make sure to update your projects in time.
``` ```
## POST: ``/api/json`` ## POST: ``/api/json``
@ -15,18 +14,18 @@ Request Body Type: ``application/json``<br>
Response Body Type: ``application/json`` Response Body Type: ``application/json``
### Request Body Variables ### Request Body Variables
| key | type | variables | default | description | | key | type | variables | default | description |
|:----------------|:--------|:----------------------------------|:----------|:-------------------------------------------------------------------------------| |:--------------------|:--------|:----------------------------------|:----------|:-------------------------------------------------------------------------------|
| url | string | Sharable URL encoded as URI | ``null`` | **Must** be included in every request. | | ``url`` | string | Sharable URL encoded as URI | ``null`` | **Must** be included in every request. |
| vCodec | string | ``h264 / av1 / vp9`` | ``h264`` | Applies only to YouTube downloads. ``h264`` is recommended for phones. | | ``vCodec`` | string | ``h264 / av1 / vp9`` | ``h264`` | Applies only to YouTube downloads. ``h264`` is recommended for phones. |
| vQuality | string | ``144 / ... / 2160 / max`` | ``720`` | ``720`` quality is recommended for phones. | | ``vQuality`` | string | ``144 / ... / 2160 / max`` | ``720`` | ``720`` quality is recommended for phones. |
| aFormat | string | ``best / mp3 / ogg / wav / opus`` | ``mp3`` | | | ``aFormat`` | string | ``best / mp3 / ogg / wav / opus`` | ``mp3`` | |
| isAudioOnly | boolean | ``true / false`` | ``false`` | | | ``isAudioOnly`` | boolean | ``true / false`` | ``false`` | |
| isNoTTWatermark | boolean | ``true / false`` | ``false`` | Changes whether downloaded TikTok & Douyin videos have watermarks. | | ``isNoTTWatermark`` | boolean | ``true / false`` | ``false`` | Changes whether downloaded TikTok videos have watermarks. |
| isTTFullAudio | boolean | ``true / false`` | ``false`` | Enables download of original sound used in a TikTok video. | | ``isTTFullAudio`` | boolean | ``true / false`` | ``false`` | Enables download of original sound used in a TikTok video. |
| isAudioMuted | boolean | ``true / false`` | ``false`` | Disables audio track in video downloads. | | ``isAudioMuted`` | boolean | ``true / false`` | ``false`` | Disables audio track in video downloads. |
| dubLang | boolean | ``true / false`` | ``false`` | Backend uses Accept-Language for YouTube video audio tracks when ``true``. | | ``dubLang`` | boolean | ``true / false`` | ``false`` | Backend uses Accept-Language for YouTube video audio tracks when ``true``. |
| disableMetadata | boolean | ``true / false`` | ``false`` | Disables file metadata when set to ``true``. | | ``disableMetadata`` | boolean | ``true / false`` | ``false`` | Disables file metadata when set to ``true``. |
### Response Body Variables ### Response Body Variables
| key | type | variables | | key | type | variables |

View file

@ -8,7 +8,7 @@
"width": 960, "width": 960,
"height": 540 "height": 540
}, },
"content": "cobalt is finally moving to its own domain, making it possible to host branches and various versions with ease and 0 confusion. bla bla bla. bla. bla bla." "content": "cobalt is finally moving to its own domain! many of you have been anticipating this, and many kept forgetting the link due to how cryptic it was.\n\nwell, worry no more - <span class=\"text-backdrop\">cobalt.tools</span> is here.\n\nif you haven't yet, open <a class=\"text-backdrop link\" href=\"https://co.wukko.me\" target=\"_blank\">co.wukko.me</a> to transfer your settings here! no additional action from you is required. just open the old link and cobalt will do everything for you :)\n\nmake sure to <span class=\"text-backdrop\">update your bookmarks</span> and reinstall the web app!\n\nhere's what domain change means:\n*; still no ads, same owner, same features, same reliability. just a way more rememberable link (it's literally two words).\n*; cobalt.tools makes it clear that cobalt is a tool and that it's \"cobalt\", not \"wukko\".\n*; i can host various versions of cobalt on subdomains without links looking awkward.\n*; i can host cobalt-related websites without polluting my personal domain's dns (such as crowdin).\n*; i stand by same privacy policies (and in fact am using the same exact server as before).\n\nthe domain change is required for the future of cobalt.\n\nhere's what's coming soon:\n*; support for many top-requested sites, such as (but not limited to) twitch and niconico.\n*; education version of cobalt, as often requested by students and educators.\n*; major localization system upgrade, allowing for simpler community contributions.\n*; region-specific versions with 100% translations and tweaks.\n*; native clients for desktop and mobile (not sure about this one, i'm no superman).\n*; ...and more!\n\nnow, here's what's new in 7.4:\n*; tabs in popups now scroll to top on tab bar tap.\n*; padding across web app was tuned.\n*; (obviously) a migration agent. soon will be used for importing and exporting settings.\n*; some minor clean ups in codebase.\n\nif you want to help cobalt achieve goals listed above, consider donating! donations are the only way i can keep cobalt ad-less, powerful, (basically) limitless, and also 100% free.\n\nin fact, donations have helped me grow cobalt more than i've ever anticipated. just imagine how much better it will be in a year.\n\ngo to donations down below to find ways to donate!\n\nthank you for reading through all of this. i hope you enjoy this update and have a great day :D"
}, },
"history": [{ "history": [{
"version": "7.2 & 7.3", "version": "7.2 & 7.3",

View file

@ -22,7 +22,7 @@
"enabled": true "enabled": true
}, },
"youtube": { "youtube": {
"alias": "youtube videos & shorts & music", "alias": "youtube videos, shorts & music",
"patterns": ["watch?v=:id", "embed/:id"], "patterns": ["watch?v=:id", "embed/:id"],
"bestAudio": "opus", "bestAudio": "opus",
"enabled": true "enabled": true
@ -32,7 +32,7 @@
"enabled": true "enabled": true
}, },
"tiktok": { "tiktok": {
"alias": "tiktok videos & photos & audio", "alias": "tiktok videos, photos & audio",
"patterns": [":user/video/:postId", ":id", "t/:id"], "patterns": [":user/video/:postId", ":id", "t/:id"],
"audioFormats": ["best", "m4a", "mp3"], "audioFormats": ["best", "m4a", "mp3"],
"enabled": true "enabled": true

View file

@ -70,7 +70,7 @@ function setup() {
}) })
break; break;
case 'web': case 'web':
console.log(Bright("\nAwesome! What's the domain this web app instance will be running on? (localhost)\nExample: co.wukko.me")); console.log(Bright("\nAwesome! What's the domain this web app instance will be running on? (localhost)\nExample: cobalt.tools"));
rl.question(q, webURL => { rl.question(q, webURL => {
ob['webURL'] = `http://localhost:9001/`; ob['webURL'] = `http://localhost:9001/`;