-
Notifications
You must be signed in to change notification settings - Fork 122
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
nginx-hmac-secure-link #18
Comments
Hi @nexusofdoom Sorry. I don't understand your question. Thanks. |
caching nginx box setup like so.. online host uses Prerequisites for Token Authentication from akimia it addess this to the request acl=/*~hmac=6a10b3f602ffde88c02cd1b89665bfdfdc0fc84c3cf7049752931ad732654fab the client points to my nginx caching box and ask to get the file but it never gets a hit on the key. is there a way to rewrite the new token to the end of the request ? or something more I can do? this is the url it requests "akamai-gamecdn.blackdesertonline.com/live001/game/download/131/BlackDesertOnline885.bcab?begin=1238753107&end=1247683342&hdnts=st=1537229206exp=1537230106acl=/live001/game/download/*!/live001/game/patch/*~hmac=c2d249db5aff5d6940e03447517ba12b41fdb9aa204cd3c762a9265f445beade" and below is what the key shows |
Hello What is the response code for this request?
|
where do you want me to get the response code ? |
note in httpry its code 200 |
You can get it using curl. I want to determine if the request is returned 200. |
Ok will do when I get back from work tonight. thanks. |
Sorry, I can only judge by my experience. |
direct test talking to there server
|
if I use lancache I get this, note it saves files to the cache and the client gets the file but the next time it downloads the acl= changes and it comes back as a miss in nginx and it re-downloads the file all over again. curl "akamai-gamecdn.blackdesertonline.com/live001/game/download/131/BlackDesertOnline885.bcab?begin=1238753107&end=1247683342&hdnts=st=1537229206 StatusCode : 200 |
Hello I noticed $request_url is used as key in your nginx conf. |
this is the testing config I am playing with. server {
} |
Your should use $uri instead of $request_uri as proxy_cache_key. |
so change this to
} |
I did this server {
|
httpry on the nginx server |
if i change the hmac= from 773b to 733a i get this message in chrome |
curl "akamai-gamecdn.blackdesertonline.com/live001/game/download/131/BlackDesertOnline885.bcab"
|
It will return 403. It means that the certification did not pass. |
I think you should be aware of what kind of request your application make to the nginx proxy, including the headers of each request. Then manually curl these request. |
curl -v "akamai-gamecdn.blackdesertonline.com/live001/game/download/131/BlackDesertOnline885.bcab?beg
|
should I be running wireshark when the application start the request on the client pc? |
Yes. The tool you are good at can easily analyze the problem. |
I am getting this now says hit but its not pulling the 8mb file
StatusCode : 200 |
The cached content is incorrect. Delete it and request it again. |
still no go after deleting cache i see it trying to fill the cache and this is one of the files in cache directory ^E^@^@^@^@^@^@^@��^Y^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@q^D�[^@^@^@^@�^K�[^@^@^@^@�ì�^@^@�^A�^B-"a95d9304b94861f6c3a8367fe93eac54:1537344593"^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@$ bdoc^Ah|^E^@�2)? |
[19/Sep/2018:22:12:08 -0500] - REQUEST="pearlabyss/live001/game/download/132/BlackDesertOnline891.bcab?begin=109683834&end=109684249&hdnts=st=1537413088 |
Is this request MISS every time? Has it ever had HIT? |
when I get it to HIT then the client software does not like it also when it hit's it only downloads like a 1kb file when the file is 30gb. |
revers proxy nginx with nginx-hmac-secure-link
can this be done?
nexusofdoom/lancache-installer#20
The text was updated successfully, but these errors were encountered: