g0chainwebserver

Here is a web server implementation I created in golang to serve 0chain files from authtickets

https://github.com/sculptex/g0chainwebserver

I have implemented it on this server, you can see demo at the following links:-

The status page of my http server running on port 6942;

http://zcdn.uk:6942/status/

The status page of my https server running on port 6943;

https://zcdn.uk:6943/status/

The config page;

https://zcdn.uk:6943/config/

The enckeys page;

https://zcdn.uk:6943/enckeys/

The version page;

https://zcdn.uk:6943/version/

A regular file authticket;

https://zcdn.uk:6943/authticket/eyJjbGllbnRfaWQiOiIiLCJvd25lcl9pZCI6IjM4NzM3MjkwZTRlMmQ4NjQ0Y2Y4ZTg5ZGRjYTA4YTM5ZDE3NTUyZTZjYjAwZjk4ODdlNWZjMzI0ZWFmNGYyYWIiLCJhbGxvY2F0aW9uX2lkIjoiZGY0ZmY2NWRlMjM2YjBlMzA3MDYwMDk4MjdjOWY4YmYzNjEzOTVjZjEzYTc4MmZjMjI3MjY4ZmRhNDNmYzI0YyIsImZpbGVfcGF0aF9oYXNoIjoiZGQ1YjEzNmU3NDY4N2E1MmIxOTcyYjBiODczZWY4NjFlZGZhM2U1MWQyOWQ2NjVhNDU1ODg4N2FlMWRmMDAwZCIsImZpbGVfbmFtZSI6ImtvZGltMjQucG5nIiwicmVmZXJlbmNlX3R5cGUiOiJmIiwiZXhwaXJhdGlvbiI6MTYxMDAyMTY3NiwidGltZXN0YW1wIjoxNjAyMjQ1Njc2LCJyZV9lbmNyeXB0aW9uX2tleSI6IiIsInNpZ25hdHVyZSI6Ijc1MGNlZDFkMDJkODY4YmVjZDcxM2QwY2E5NGZkNzM0ZGJjM2M2MDNhMTEzY2U3NWQ0M2I5MDE0MjY5MTVmODkifQ==/kodim24.png

An encrypted file authticket. shared with this hosts wallet;

https://zcdn.uk:6943/authticket/eyJjbGllbnRfaWQiOiIzODczNzI5MGU0ZTJkODY0NGNmOGU4OWRkY2EwOGEzOWQxNzU1MmU2Y2IwMGY5ODg3ZTVmYzMyNGVhZjRmMmFiIiwib3duZXJfaWQiOiIzODczNzI5MG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