# Makecode self-hosted version with nginx

**URL:** https://forum.makecode.com/t/makecode-self-hosted-version-with-nginx/18665
**Category:** PXT
**Created:** [March 21, 2023, 5:06pm UTC](https://forum.makecode.com/t/makecode-self-hosted-version-with-nginx/18665 "2023-03-21T17:06:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nevergone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/nevergone/32/8108_2.png) [@nevergone](https://forum.makecode.com/u/nevergone)
#### Post date: [March 21, 2023, 5:06pm UTC](https://forum.makecode.com/t/makecode-self-hosted-version-with-nginx/18665/1 "2023-03-21T17:06:36Z")

</div>

I would like a self-hosted, Docker-based version from pxt-microbit.

Wrote a default nginx configuration file:

```auto
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.
