Host a reverse proxy to postmarketOS and Alpine Repositories

When you don't have the access to Internet, it would be annoying to setup route and packet forwarding/masquerading on a PC. What if you just want to install a package from apk repositories, but it depends on a lot of packages? This guide shows you how to setup a reverse proxy to APK repositories on PC.

Nginx
We use for example.

Reverse proxy
The configs could be stored in  or. In this config we use port.

Local repository server
Like the other HTTP servers, Nginx can serve a local path. Note that a standard HTTP port  is used in this example.

Restart
Restart to apply the changes.