Giter VIP home page Giter VIP logo

Comments (10)

derat avatar derat commented on May 25, 2024

I don't really know what I'm doing, but let me know if the Dockerfile that I just committed works for you.

from nitter-rss-proxy.

somedevreally avatar somedevreally commented on May 25, 2024

awesome, i got it working. so am accessing it with
http://localhost:8080/nasa i get the rss
do i have to do anything when rate limit hits? or will it auto change to another instance?

thanks

from nitter-rss-proxy.

derat avatar derat commented on May 25, 2024

Glad that it works!

I'd recommend choosing multiple public instances from the list at https://github.com/zedeus/nitter/wiki/Instances. You can verify that each one is working by running a command like this:

nitter-rss-proxy -user nasa -instances https://nitter.it/

(or whatever equivalent is needed to pass those -user and -instance flags to your Docker image).

Then pass the instances that you chose as a comma-separated list when you run the proxy, e.g.

nitter-rss-proxy -instances https://nitter.it/,https://nitter.ca/,...

The proxy will cycle through the instances as it handles requests, and if an instance times out or reports an error, it'll automatically move on to the next one in the list.

from nitter-rss-proxy.

somedevreally avatar somedevreally commented on May 25, 2024

i dont think i can pass -user or -instance in docker-compose. not as enviroment :(
can it be implemented in main.go getting list from https://github.com/zedeus/nitter/wiki/Instances
just a suggestion.

thanks

from nitter-rss-proxy.

derat avatar derat commented on May 25, 2024

I don't know anything about docker-compose, but do any of the answers at https://stackoverflow.com/questions/37366857/how-to-pass-arguments-to-entrypoint-in-docker-compose-yml help?

I'd rather not make the program automatically get a list of instances for a variety of reasons (it'd add a network dependency on GitHub, the proxy would need to parse that webpage, some instances are flaky or buggy and there would probably still need to be a way to manually exclude them, etc.).

from nitter-rss-proxy.

somedevreally avatar somedevreally commented on May 25, 2024

here is my docker-compose.yml

nitterproxy:
    container_name: nitterproxy
    image: nitterproxy
    ports:
      - 8080
    restart: always
    build:
      context: ./nitterproxy
    command: [nitterproxy -instances https://nitter.it/,https://nitter.ca/]

how do i test it now?
if i go to image console and run nitterproxy -instances https://nitter.it/,https://nitter.ca/
i get this error
sh: nitterproxy: not found

from nitter-rss-proxy.

derat avatar derat commented on May 25, 2024

The Dockerfile that I committed installs the executable at /nitter-rss-proxy. Does changing the final line of your docker-compose.yml to something like this work?

  command: [ '/nitter-rss-proxy', '-addr', '0.0.0.0:8080', '-instances', 'https://nitter.it,https://nitter.ca' ]

from nitter-rss-proxy.

somedevreally avatar somedevreally commented on May 25, 2024

ok i changed last line and when i runthe command on console '/nitter-rss-proxy', '-addr', '0.0.0.0:8080', '-instances', 'https://nitter.it,https://nitter.ca' it still says not found.

from nitter-rss-proxy.

derat avatar derat commented on May 25, 2024

It seems weird to me that running /nitter-rss-proxy on the console wouldn't work, but this is beyond my knowledge. The Dockerfile seems pretty trivial and works on Google Cloud Run, so hopefully someone with more knowledge about docker-compose would be able to tell you what needs to be changed in your docker-compose.yml file.

from nitter-rss-proxy.

zydou avatar zydou commented on May 25, 2024

here is my docker-compose.yml

nitterproxy:
    container_name: nitterproxy
    image: nitterproxy
    ports:
      - 8080
    restart: always
    build:
      context: ./nitterproxy
    command: [nitterproxy -instances https://nitter.it/,https://nitter.ca/]

how do i test it now? if i go to image console and run nitterproxy -instances https://nitter.it/,https://nitter.ca/ i get this error sh: nitterproxy: not found

Because the Dockerfile has an ENTRYPOINT entry, the command: ... line in your docker-compose.yml is appended after the ENTRYPOINT line. (more info)

You should change the command keyword in your docker-compose.yml to entrypoint.

nitterproxy:
    container_name: nitterproxy
    image: nitterproxy
    ports:
      - 8080
    restart: always
    build:
      context: ./nitterproxy
    entrypoint: ["/nitter-rss-proxy", "-instances", "https://nitter.it/,https://nitter.ca/"]

from nitter-rss-proxy.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.