CryptoGrampy / HotShop

An Ephemeral, browser-based, no-private-key, no-server Point of Sale for receiving and validating Monero payments
https://hotshop.onrender.com/
MIT License
79 stars 7 forks source link

Docker questions #91

Closed hinto-janai closed 2 years ago

hinto-janai commented 2 years ago

The Docker build errors, but the container still runs great :D

hinto$[0] ~/git/HotShop sudo docker-compose up
[+] Running 0/1
 ⠿ hotshop Error          

Also, does this mean HotShop is running on all my threads? Is there a setting to limit it? I mean, a kiosk running on 32 threads is sick but I don't know if the code takes advantage of it

hotshop  | 2022/08/05 13:14:24 [notice] 1#1: start worker processes
hotshop  | 2022/08/05 13:14:24 [notice] 1#1: start worker process 7
...
hotshop  | 2022/08/05 13:14:24 [notice] 1#1: start worker process 38

I'm also wondering if the only thing HotShop connects to is a monerod, where does the fiat conversion come from?

P.S. the faded 0 is very slick

nice

CryptoGrampy commented 2 years ago

Hi @hinto-janaiyo - thanks for testing this out. Honestly, haven't used the docker build much since I wrote it- you're more than welcome to try and fix the error. Not quite sure what would cause it, though... Probably related to the wasm files from monero-javascript. Regarding multithread: https://github.com/monero-ecosystem/monero-javascript/issues/96

As for other things- I tried to be fairly explicit about what is happening under the hood in the 'About' section- you're correct that no connections are happening outside of the request for the static page assets (and no view keys get sent in this http request) and the direct browser -> web-compatible monerod request. However! You are correct that the exchange rate does come from the CoinGecko API- I will make a bug ticket to add this information to the About page as well as a note on the Settings page.

Yes, I agree on the slickness of the 0 :)

Looking forward to more feedback!

CryptoGrampy commented 2 years ago

@hinto-janaiyo Out of curiousity, did you try docker-compose build && docker-compose up ? And the worker process is actually related to nginx / request handling (i think)

hinto-janai commented 2 years ago

docker-compose build && docker-compose up

This worked, thanks.

Also, that's right I forgot, there are other things happening in the background.
I totally thought it was using all threads to render the page :D