You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are going to need nginx with lua/luajit compiled in.
Since we don't want to buffer the entire file in memory we are going to need a way to store it in a temp location on disk till we have a complete hash of the file then we can move it.
nginx+lua supports file-upload so we can make it as trivial as curl --binary-data file.foo http://resource/uri for uploading new content/new versions :)
So what we need to do:
Compile nginx with lua and maybe some of the lua framework
Setup a basic file-send/share directory with the uri + hash (ie asset/game1/logic.lua/) for fetching that specific file+version
Add in a hook for PUT/POST to the asset uri (PUT asset/game1/logic.lua) which will store the file in a temp loc, and generate the hash, move it into the final loc, return the hashed uri/hash.
Can later have lua ping the specific game-server and be like yo you got a new version of X asset.
The text was updated successfully, but these errors were encountered:
I have found a lots of resources on this:
Anyway the basic outline is:
curl --binary-data file.foo http://resource/uri
for uploading new content/new versions :)So what we need to do:
The text was updated successfully, but these errors were encountered: