Hosting a website on a PinePhone, etc.
#18
(02-23-2021, 08:15 PM)TRS-80 Wrote:
(02-23-2021, 06:04 PM)Trbl Wrote: you gotta jump some hoops with verizon but it seems to be possible to get an APN with open ports / a public IP or at least some forwarding.

Nginx runs well, I'm hosting a static website on my pinephone *on 4G*
This is really interesting (and honestly, better than what I was expecting)!

So, now that it appears technically possible, the question becomes: do you want to / is that a good idea?  I must say, that Trbl's website loaded right away for me.  For a small static site, that's not getting much traffic yet, that might actually be perfectly fine.
In fact, playing around with self-hosting your own services is a really good way to learn GNU/Linux.  And here it appears you can do so with no further expenditure.

@Trbl,
Neat site by the way!  A little creepy.  But neat!  :D
My current setup looks like this:
  • 4G contract with unlimited data & public IP apn (30$)
  • Domain (her.st) (about 1$ a month)
  • Home Server (8W/h not really visible on the powerbill)
  • VPS (5$ /m) ((free, im my own hosting provider, specs are equal to what I sell for 5$/m))
VPS is running mailinabox (email, dns, nextcloud, webmail, static websites)
all personal projects I want to share with others / expose to the public

My Home Server deals with Storage, backups, some scripts like a [size=small]youtube-dl sync script that trancodes to audio and pushes the files to my phone automatically every night, by monitoring a youtube playlists for changes, local testing before pushing it on the VPS

All I needed to do to make the dynamic IP situation work was setup a DNS record in the mailinabox admin panel, and a script on the pinephone that posts its public IP through the simple REST API mailinabox provides with a networkmanager hook, whenever the connection goes up, it updates the DNS record to point to the new IP.

With a setup like that you can do ANYTHING and its like 35$ a month. The CPU in the pp is really slow, so I try to offload anything I can to either the homeserver or the VPS, i think this is the best appraoch for slow hardware, distributed computing - but since all of those distributed services can also run locally, you can have failovers for alot of stuff running (slowly) directly on the pinephone.

Sorry for the wall of text, i just love my pinephone xD
  Reply


Messages In This Thread
Hosting a website on a PinePhone, etc. - by a-l - 02-12-2021, 06:09 PM
RE: Hosting a website on a PinePhone, etc. - by Trbl - 02-24-2021, 12:08 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  beep - playing PCM samples on PinePhone? WhiteHexagon 0 327 12-04-2025, 08:07 AM
Last Post: WhiteHexagon
Star Selling my Pinephone Pro Explorer Edition zheyon 2 3,165 12-01-2025, 10:25 AM
Last Post: Kevin Kofler
  PinePhone sensors - Gyroscope power WhiteHexagon 3 601 11-30-2025, 08:07 AM
Last Post: WhiteHexagon
  Light Sensor / Proximity Sensor on PinePhone? WhiteHexagon 1 534 11-18-2025, 03:07 PM
Last Post: WhiteHexagon
  Pinephone visibly losing power while plugged in Hiraghm 7 4,913 10-21-2025, 10:38 PM
Last Post: Anthona
  Pinephone boot. Richy_T 8 4,756 10-21-2025, 12:12 PM
Last Post: Richy_T
  How can I record video on a Pinephone? kk22 22 16,214 10-08-2025, 01:29 PM
Last Post: Kevin Kofler
  Does PinePhone support long-term battery health optimization? roseblack 5 1,613 10-06-2025, 09:05 PM
Last Post: Kevin Kofler
  iso pinephone for sale (USA) elwoodb25 0 3,984 09-24-2025, 09:25 PM
Last Post: elwoodb25
  Why projects like PinePhone matter – feedback and encouragement Gary2003 13 18,611 09-16-2025, 01:13 PM
Last Post: Gary2003

Forum Jump:


Users browsing this thread: 1 Guest(s)