Changing ports

9 views
Skip to first unread message

Scott Harrison

unread,
Jan 20, 2016, 8:42:31 PM1/20/16
to Coronium IO
Hi I was wondering if there was a way to change port of the ace pi. I want to make it 443 so I can make https calls. I want this for Apple's App Transport Security (ATS)
Thanks,
Scott

develephant

unread,
Jan 21, 2016, 6:06:25 PM1/21/16
to Coronium IO
Hi Scott,

Let me pull up the project, and I'll get you some info.

Cheers.

Scott Harrison

unread,
Jan 22, 2016, 5:39:14 PM1/22/16
to Coronium IO
Thanks

develephant

unread,
Jan 24, 2016, 3:14:42 PM1/24/16
to Coronium IO
Warming up some Pi right now. :)

Cheers.

On Friday, January 22, 2016 at 4:39:14 PM UTC-6, Scott Harrison wrote:
Thanks

develephant

unread,
Jan 24, 2016, 3:37:51 PM1/24/16
to Coronium IO
Hi,

You can change the port that Ace-Pi listens on by running this in your terminal connected to the device:

sudo sed "s/listen 8081/listen <PORT>/" -i /home/pi/Ace/nginx/conf/nginx.conf


For example, to set the port to 443:

sudo sed "s/listen 8081/listen 443/" -i /home/pi/Ace/nginx/conf/nginx.conf

You'll need to restart Ace-Pi with:

acepi restart


Hope that helps.

Cheers,
Chris
Reply all
Reply to author
Forward
0 new messages