Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for a self-hosted version with nginx webserver #9432

Open
nevergone opened this issue Mar 21, 2023 · 0 comments
Open

Documentation for a self-hosted version with nginx webserver #9432

nevergone opened this issue Mar 21, 2023 · 0 comments

Comments

@nevergone
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant