Download portal for your OS.
Create a config file for portal
config.json
{ "db-connection": "scribble:///tmp/portal", "log-level": "info", "server": true, "just-proxy": true }
Start portal
sudo portal -c /tmp/portal/config.json
Create a self-signed cert to use
openssl req -x509 -newkey rsa:1024 \ -keyout /tmp/key.pem -out /tmp/cert.pem \ -days 365 -nodes \ -subj "/C=US/ST=Idaho/L=Rexburg/O=Nanobox/OU=Org/CN=localhost"
Add cert to portal
portal -i add-cert -C "$(cat /tmp/cert.pem)" -k "$(cat /tmp/key.pem)"
Start your nanobox project
nanobox run ... + If you run a server, access it at >> 172.19.0.5
Add your project as a target to portal
portal -i add-route -j '{"path":"/","targets":["http://172.19.0.5:8080"]}'
You may also configure the following for a portal route:
subdomain
domain
fwdpath
page
Visit your app
curl -k https://localhost