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

Website feature removed #768

Open
DavidxDGM opened this issue Sep 21, 2024 · 11 comments
Open

Website feature removed #768

DavidxDGM opened this issue Sep 21, 2024 · 11 comments

Comments

@DavidxDGM
Copy link

problem description

I recently did a complete reinstall on my Respberry Pi and wanted to reinstall Cobalt via Docker compose.

After the installation, I noticed that the website no longer exists and the image URL no longer exists in docker-compose.yml.

How can I fix this?

Many thanks in advance.

your instance configuration

services:
    cobalt-api:
        image: ghcr.io/imputnet/cobalt:10
        restart: unless-stopped
        container_name: cobalt-api

        init: true

        ports:
            - 9000:9000/tcp
            # if you're using a reverse proxy, uncomment the next line and remove the one above (9000:9000/tcp):
            #- 127.0.0.1:9000:9000

        environment:
            # replace https://api.cobalt.tools/ with your instance's target url in same format
            API_URL: "https://api.cobalt.tools"
            # if you want to use cookies when fetching data from services, uncomment the next line and the lines under >            # COOKIE_PATH: "/cookies.json"
            # see docs/run-an-instance.md for more information
        labels:
            - com.centurylinklabs.watchtower.scope=cobalt

        # if you want to use cookies when fetching data from services, uncomment volumes and next line
        #volumes:
            #- ./cookies.json:/cookies.json

    # update the cobalt image automatically with watchtower
    watchtower:
        image: ghcr.io/containrrr/watchtower
        restart: unless-stopped
        command: --cleanup --scope cobalt --interval 900 --include-restarting
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
@KwiatekMiki
Copy link
Contributor

You don't need to host the frontend anymore, you can use your own instance on cobalt.tools.

https://cobalt.tools/settings/instances

@DavidxDGM
Copy link
Author

You don't need to host the frontend anymore, you can use your own instance on cobalt.tools.

https://cobalt.tools/settings/instances

Ah lol. Thanks for the tip. Unfortunately, I only have one problem: I don't have a public (static) IP address. That means that the entire local docker setup is pointless now. Which is a shame.

@conichonhaa
Copy link

How do you enable it without web interface ?

@KwiatekMiki
Copy link
Contributor

enable what? (selfhosted) cobalt?

by 'enable' do you mean 'use'?

@conichonhaa
Copy link

Yes, web interface disappear between version 7 and 10. After update, i can't reach my self hosted website

@wukko
Copy link
Member

wukko commented Oct 13, 2024

you can use your api instance with main frontend instance: https://cobalt.tools/settings/instances#community

@conichonhaa
Copy link

Thanks i read it a bit more up in this discussion, but it's that part i don't understand what to do with

@wukko
Copy link
Member

wukko commented Oct 13, 2024

just paste the instance url there

@conichonhaa
Copy link

Just go it. I paste my URL there
One last question. Do i also have to replace the url in docker-compose.yml or do i leave api.cobalt.tools ?

For the moment i let api.cobalt.tools but i only see that when i load my URL

cobalt":{"version":"10.1.0","url":"https://api.cobalt.tools/","startTime":"1728801652969","durationLimit":10800,"services":["bilibili","bluesky","dailymotion","facebook","instagram","loom","ok","pinterest","reddit","rutube","snapchat","soundcloud","streamable","tiktok","tumblr","twitch","twitter","vine","vimeo","vk","youtube"]},"git":{"branch":"main","commit":"c33017283d20ee9a998b7c19ad5f24fc17bdede7","remote":"imputnet/cobalt"}}

@wukko
Copy link
Member

wukko commented Oct 13, 2024

Do i also have to replace the url in docker-compose.yml

yes, you have to replace it or else tunnels (youtube & etc) won’t work

@conichonhaa
Copy link

Ok, i replace API URL with my domain name. I'm also under a reverse proxy, i uncomment line 127.0.0.1:9000:9000 and comment 9000:9000/tcp but it leads me to a bad gateway 502 error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants