Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Jeanine Adkisson
    @jneen
    hey all - i'm an old who apparently doesn't know how to deploy software anymore. is there like, a package i can just deploy to get this up and running
    i'm finding like 20 different packages all with conflicting instructions
    Renée Kooi
    @goto-bus-stop
    @jneen embarrassingly the project has been in that state for years :grimacing: the u-wave-core package is almost getting in a usable state but you basically still need to pull+build the web client yourself and write some glue code to get that going
    that is to say the project is to blame, not you :D
    Renée Kooi
    @goto-bus-stop
    there are two main parts: u-wave-core and u-wave-web
    npm install -g u-wave-core comes with a binary that you can run and configure with environment variables. npx u-wave-core should list the environment variables that it expects.
    u-wave-web currently has to be built manually, in a fresh clone do npm install && npm run prod, then packages/u-wave-web-middleware contains the built version.
    u-wave-web-middleware only provides a middleware function. so you have to write a bit of code that starts an express server and adds it in…
    Renée Kooi
    @goto-bus-stop
    The intent is for a u-wave-web package to exist very similar to the u-wave-core one, so both could be installed and started with systemd or something. but it's not quite there yet
    Renée Kooi
    @goto-bus-stop
    I think most existing servers are actually based on the example/ folder in u-wave/core: https://github.com/u-wave/core/tree/default/example
    That does still require you to build the web client manually and like symlink it in or whatever
    Jeanine Adkisson
    @jneen
    ...interesting!
    Renée Kooi
    @goto-bus-stop
    that's a charitable way to phrase it :joy:
    Jeanine Adkisson
    @jneen
    weirdly i do have a server running off of that
    there don't seem to be search results in the top tab - it's possible my API keys are wrong, but I'm not sure how I would tell
    are there logs somewhere?
    image.png
    basically this is what i see
    Renée Kooi
    @goto-bus-stop
    on https://wlk.yt we run it with DEBUG=uwave:* in production which spams a crapton of stuff to stderr
    Jeanine Adkisson
    @jneen
    oh sweet
    Renée Kooi
    @goto-bus-stop
    hmm
    Jeanine Adkisson
    @jneen
    that's likely the bit i needed
    Renée Kooi
    @goto-bus-stop
    is that straight from the example folder in u-wave-core?
    Jeanine Adkisson
    @jneen
    yep
    i had to do a couple backflips in my nginx config to get the csp thing to be permissive enough
    but other than that it's just from the example
    Renée Kooi
    @goto-bus-stop
    the u-wave-web version published to npm is kind of outdated, it should work for the most part, but the way it does search changed a bit to avoid having to wait for soundcloud results if you're looking for a youtube vid etc
    the old ver uses a single endpoint to do a search on all sources, while the new ver hits separate endpoints for each single source, when needed
    Jeanine Adkisson
    @jneen
    403
    Renée Kooi
    @goto-bus-stop
    and the old endpoint might swallow errors, but hopefully not
    Jeanine Adkisson
    @jneen
    found in the logs
    it's likely my api keys are wrong
    (soundcloud... doesn't issue api keys anymore...)
    Renée Kooi
    @goto-bus-stop
    yeah i search github for soundcloud client_id to get api keys
    Jeanine Adkisson
    @jneen
    i needed to enable the youtube api in the google dev console
    sigh
    used to be that to do publicly-accessible searches you didn't have to like, register stuff
    Renée Kooi
    @goto-bus-stop
    now you only get 100 searches a day on an api key by default :upside_down_face:
    Jeanine Adkisson
    @jneen
    jfc lol
    almost easier just to scrape the dang site
    Renée Kooi
    @goto-bus-stop
    kinda :'
    i've thought of making an invidio.us based media source, it could be swapped out backwards compatibly
    but so many things to do so little time!
    Jeanine Adkisson
    @jneen
    invidio.us appears to be dead
    Jeanine Adkisson
    @jneen
    ok i got youtube search working but now i'm getting 403 from soundcloud lol
    Jeanine Adkisson
    @jneen
    god i hate csp
    image.png
    Renée Kooi
    @goto-bus-stop
    hmm right, the API is already adding helmet under the assumption that it is run in its own process separate from the web client, but that is not what the example is doing yet
    maybs i'll add an option for now so that can be toggled off entirely
    Renée Kooi
    @goto-bus-stop
    Jeanine Adkisson
    @jneen
    ooo i'll try that
    Jeanine Adkisson
    @jneen
    up and running, thanks so much
    Jeanine Adkisson
    @jneen
    and thanks for making this, it's real cool software
    Danil Braun
    @danilbraun
    Hi! Is there a complete instruction for installing/configuring mongodb+redis+u-wave on ubuntu 20.04? I see several TODOs on the official site.