Giter Club home page Giter Club logo

Comments (3)

Yooooomi avatar Yooooomi commented on May 19, 2024

Hello, I'm glad you put interest in setting up my project!

I think I know what is happening.

You set the api behind /api. So when calling /me it calls /api/me which doesn't exist in the server.

Using nginx, you should rewrite the actual url before proxy'ing to the server to /me instead of /api/me. Or you could simply set the server to api-spotify.domain.com.

I hope this will help you, do not hesitate to ask further informations.

from your_spotify.

athphane avatar athphane commented on May 19, 2024

Hi! Thanks for the quick reply. I immediately went to bed after posting the issue.

You were right, rewriting the url did the trick. I added the following line to my /api location.

rewrite /api/(.*) /$1 break;

All works just fine.

Would like to disable the registration ability now tho. It was previously discussed on #9. Any progress on that?

You think nginx auth_basic would be enough for a workaround?

from your_spotify.

Yooooomi avatar Yooooomi commented on May 19, 2024

Hello,

Happy to ear that it works now! I don't know much about nginx auth_basic, maybe you should investigate that.

I didn't work much on blocking registers but I'll consider implementing it next time.
Marking this as solved.

Have a great day :)

from your_spotify.

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.