SkynetLabs / webportal-nginx

MIT License
1 stars 2 forks source link

Refactor account lua nginx pieces #9

Open kwypchlo opened 2 years ago

kwypchlo commented 2 years ago

From https://github.com/SkynetLabs/skynet-webportal/pull/2010

TODO & DISCLAIMER: that logic only works because the skylink is only set in context where skylink is accessed, unfortunately this assumption is be easy to break if someone without knowledge of this changes an endpoint that otherwise doesn't operate in context of skylink (like registry endpoint) and uses skylink variable for something else - this functionality should be rewritten when refactoring nginx account pieces with tests.