Paperspace / paperspace-node

Paperspace API for node.js
https://www.paperspace.com/core
ISC License
75 stars 15 forks source link

Expose ports and create public IP #12

Open cvalenzuela opened 6 years ago

cvalenzuela commented 6 years ago

Following a brief discussion with @dte, having a method in the API to expose ports will be useful. I'm creating a public server and need to expose specific ports when the machine is started. I'm using sudo ufw allow 33100, but it would be nice to have them programmatically setup up when booting the machine.

Also, having a way to enable or set up the public address will be nice too!

sanfilip commented 6 years ago

You can use a startup script to expose ports: https://github.com/Paperspace/paperspace-node/blob/master/scripts.md

There is an option to assign a public ip as well; see the "assignPublicIp" property under https://paperspace.github.io/paperspace-node/machines.html#.create

cvalenzuela commented 6 years ago

great! thanks for pointing out this resources. I guess we can close this for now