I have an old OnePlus 5T that has LineageOS installed. I don’t really do anything with it and I thought it would be cool to host my first ever website (static) on it.

What I’ve done so far:

  1. Got the HTML file for my website.
  2. Got the CSS style sheet for that site.
  3. Purchased a domain name.

I request help/guidance with:

  1. Minimal install of Debian, nginx, Docker, and Fail2ban. (I feel I need help with the Debian installation because the rest is seems easy enough).
  2. Hosting my website from my home, so like if I should consider subnet or vlan for my home to protect other devices when I expose port 80 (http) and 443 (https) of my router so other servers can access my server phone.

I know this sounds like complicating matters for something I have never done before, but any help would be greatly appreciated. I have hosted stuff at home (pihole, LibreTranslate, etc) but I think this website project may not be straightforward.

  • just some guy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 hours ago

    As said in another comment a bare metal Debian install likely wouldn’t be very smooth, or you’d have to run it within Android. Alternatively, if you want to run Linux directly on the phone you could try postmarketOS https://wiki.postmarketos.org/wiki/OnePlus_5T_(oneplus-dumpling)

    I can’t help as much with the exposing outward (I’m a basic bitch and just use ddns to expose mine since I can’t get a dedicated IP) but a separate vlan with rules to allow your primary vlan devices to see/talk to it, and block it to be able to see out of it’s own VLAN, would definitely be recommended.