Hosting a website on a PinePhone, etc.
#19
(02-24-2021, 12:08 AM)Trbl Wrote:
(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!  Big Grin
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 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


Thank you Trbl,

It's great to finally hear some more positive news! :-D  I do have questions, but let me say at the outset, instead of bothering you, if you can recommend any tutorials, etc., I will try very hard to learn on my own. Also, I don't know if you saw my 3rd post, but here are some specific questions:

1. Regarding the page you referenced: https://m2mdeveloper.verizon.com/docs/ts...evice.html  , are you saying that by me writing some code to create a "public IP Apn" that it will basically be giving the pp an IPv6 address?

2. Since you seem to be offloading as much as you can due to the pp's slow CPU, and my original intention was to host on a laptop connected to the pp via hotspot, I'm assuming that the laptop will also have an IPv6 address (same one as the pp?). But, how do you keep the WiFi from dropping off? Also, I don't know if I'll need this, but are you allowed to have multiple devices connected via the hotspot, or would you need to use a router?

3. About VPS and Home Server - would I need both of these, and if so, can I do them on my own, as you have?

Again, sorry if my questions are too basic. I'm anxious to learn though, if I can just get my hands on a pp. Big Grin

Cheers
  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 a-l - 02-27-2021, 03:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  eSIM on PinePhone just_a_q 8 4,697 11-05-2024, 11:10 AM
Last Post: zetabeta
  Want to buy second hand PinePhone 3G version rudi.timmermans 0 179 11-01-2024, 09:58 AM
Last Post: rudi.timmermans
  Can use PlayStation on Pinephone? willharper 6 5,684 10-30-2024, 08:07 AM
Last Post: biketool
  Ordered PinePhone till today have no info or confirmation about order hennadiyt 1 367 10-05-2024, 02:20 PM
Last Post: KC9UDX
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 11 5,769 07-28-2024, 03:42 PM
Last Post: dchang0
  How can I record video on a Pinephone? kk22 18 7,219 07-22-2024, 05:18 PM
Last Post: baptx
  Pinephone not booting, always vibrating alexander12 8 6,888 07-19-2024, 07:50 PM
Last Post: Blackheart
  PinePhone Pro P. Siera 2 829 07-17-2024, 12:41 AM
Last Post: P. Siera
  PinePhone Boots but only Shows Black Screen with Backlight danyeaw 1 691 06-30-2024, 10:18 AM
Last Post: danyeaw
  Pinephone won't boot. spha 13 5,905 05-15-2024, 10:31 PM
Last Post: Richy_T

Forum Jump:


Users browsing this thread: 2 Guest(s)