I would like a self-hosted, Docker-based version from pxt-microbit.
Wrote a default nginx configuration file:
server {
listen 80;
listen [::]:80;
server_name localhost;
root /usr/share/nginx/html;
#access_log /var/log/nginx/host.access.log main;
location / {
try_files $uri $uri/ /index.html;
}
location /static {
root /usr/share/nginx/html/docs;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Makecode is runnable and /static/packages/bluetooth/icon.png file is correct (add bluetooth extension), but for ex. /api/gh/51bit/colorbit URL is missing. What am I doing wrong?
Test URL-s:
- /static/packages/bluetooth/icon.png
- /api/gh/51bit/colorbit
- /pkg/51bit/colorbit
Thanks.