Giter Club home page Giter Club logo

Comments (4)

lalinsky avatar lalinsky commented on June 30, 2024

The module acoustid.wsgi only serves the API, which has no handler for /. A request to /ws/lookup should give you some response.

from acoustid-server.

mihwas avatar mihwas commented on June 30, 2024

Yes, thank you. It's really works.
But one more question - can i find some documentation about the /ws/ api anywhere? At the acoustid.org website i have saw only /v2/ preffix for api access.
For example - how can i register new application or user keys, if my local server runs only in API mode (using uwsgi)? Is there any API commands using website secret variable, or only one way to do this - INSERT directly into PostgreSQL database by default db algorithm?
Thanks a lot!

from acoustid-server.

lalinsky avatar lalinsky commented on June 30, 2024

The /ws prefix was there historically to allow me to serve both api and the website from the same uwsgi app. For the api domain, it's just removed from the path. This is the nginx config part used in production:

    location / {
        rewrite ^/?(.*)$ /ws/$1 break;
        include uwsgi_params;
        uwsgi_pass acoustid_live_api_rw;
    }

Regarding the api keys, the easiest way is probably to insert things into the database. This was never really designed to run anywhere but on acoustid.org, so the website is the only tool that can manage api keys.

from acoustid-server.

mihwas avatar mihwas commented on June 30, 2024

Yes, i got it.
But have one more offtopic question. I tried to ask it at the google mailing lists, but it looks like some questions are unanswered from september.

Hello!
I have sucessfully installed acoustid-server on standalone dedicated server.
Then i have imported all data from fulldump, also create a musicbrainz schema and import data inside it too.
Now i'm trying to use automated sync script, provided in ./admin directory.

So, i have seted up an acoustid-server and trying to use replication script.
It works fine, but extremely slow. For hourly dump near 5 Mb it took near 30min - 1 hour for operation.
I have tried to drop Primary keys, Indexes, Constraints. I have allready did VACUUM on acoustid db, but it did not bring any effect.
Is anybody have the same issue? Or it is default time for sync?

Thanks a lot!

from acoustid-server.

Related Issues (20)

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.