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

different search results #49

Closed
SerhiiMatvieiev opened this issue Aug 31, 2017 · 3 comments
Closed

different search results #49

SerhiiMatvieiev opened this issue Aug 31, 2017 · 3 comments

Comments

@SerhiiMatvieiev
Copy link

SerhiiMatvieiev commented Aug 31, 2017

Hi, how it's possible when I try to search audios I get a completely different result in response?
Foe example, when i do something like this: http://mysite.xyz/search?q=linkin , i get result:

{"status":"ok","data":[{"artist":"Linkin Park and Kiiara","title":"Heavy (feat. Kiiara)","duration":169,"download":"http://mysite.xyz/dl/8600f8de/88c7a71d","stream":"http://mysite.xyz/stream/8600f8de/88c7a71d"},{"artist":"Charly Beck","title":"Burn It Down (feat. Linkin Park)","duration":193,"download":"http://mysite.xyz/dl/8600f8de/539820a8","stream":"http://mysite.xyz/stream/8600f8de/539820a8"},{"artist":"Instrumental All Stars","title":"Breaking the Habit (Originally Perfomed By Linkin Park)","duration":195,"download":"http://mysite.xyz/dl/8600f8de/ac0066a3","stream":"http://mysite.xyz/stream/8600f8de/ac0066a3"},{"artist":"Anne-Caroline Joy","title":"Heavy (Linkin Park Tribute)","duration":165,"download":"http://mysite.xyz/dl/8600f8de/54807b36","stream":"http://mysite.xyz/stream/8600f8de/54807b36"},{"artist":"Karaoke Jam Band","title":"Papercut (Karaoke Version) [Originally Performed by Linkin Park]","duration":186,"download":"http://mysite.xyz/dl/8600f8de/d912f2aa","stream":"http://mysite.xyz/stream/8600f8de/d912f2aa"}]}

But if i use https://datmusic.xyz/?q=linkin the result much better.

What do you think ?
Thanks!

@alashow
Copy link
Owner

alashow commented Aug 31, 2017

Duplicate of #35.

BTW, don't expose your site's URL (see #45).

@alashow alashow closed this as completed Aug 31, 2017
@alashow
Copy link
Owner

alashow commented Aug 31, 2017

As @sy2nyk suggested here, I used veesp.com for proxy server.

You could start from Sandbox (1TB bandwidth limit), then upgrade to SSD 1 (unlimited badnwidth) if you exceed the limit.
You could use my referral link https://secure.veesp.com/?affid=286 (will redirect to SSDs).

Then install squid proxy:

apt-get update
apt-get install squid

To verify installation:

squid -h

Then edit config:

http_port 9091

# replace with your ip
acl client src 88.99.184.30
http_access allow client

forwarded_for off
request_header_access Allow allow all
request_header_access Authorization allow all
request_header_access WWW-Authenticate allow all
request_header_access Proxy-Authorization allow all
request_header_access Proxy-Authenticate allow all
request_header_access Cache-Control allow all
request_header_access Content-Encoding allow all
request_header_access Content-Length allow all
request_header_access Content-Type allow all
request_header_access Date allow all
request_header_access Expires allow all
request_header_access Host allow all
request_header_access If-Modified-Since allow all
request_header_access Last-Modified allow all
request_header_access Location allow all
request_header_access Pragma allow all
request_header_access Accept allow all
request_header_access Accept-Charset allow all
request_header_access Accept-Encoding allow all
request_header_access Accept-Language allow all
request_header_access Content-Language allow all
request_header_access Mime-Version allow all
request_header_access Retry-After allow all
request_header_access Title allow all
request_header_access Connection allow all
request_header_access Proxy-Connection allow all
request_header_access User-Agent allow all
request_header_access Cookie allow all
request_header_access All deny all

Restart squid:

service squid status

Or, you could just use VPS from veesp.com and use it as your main server for datmusic-api.

@SerhiiMatvieiev
Copy link
Author

Thank you so much !

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

No branches or pull requests

2 participants