Web-hosting question: if I have html files on my RPi, which I can view locally on my home network, how can I publish those so they are available at a domain I have registered with Squarespace?

I don’t want to use the RPi as a web server, but would rather push those html files. I looked at Cloudflare, but I have to import from there manually rather than being able to push the files. (The html files are updated every five minutes so importing from CF isn’t feasible.) Also, I don’t want to use Squarespace for web-hosting. Thanks! #asknostr

Reply to this note

Please Login to reply.

Discussion

You'll need a host for the files somewhere. Either a server somewhere or the Pi. The domain can be pointed anywhere so you don't have to use squarespace

To host the files, you will need a webserver.

And you can point your domain to that webserver.

You can buy servers, or hosting services as well.

If you have a server, you have more flexibility, but also more work.

If you have a service, you have less flexibility, but easier setup.

I think it is easier to just use a service.

I guess, you could ask the following questions from yourself:

1️⃣ Can I generate/update the html files on the external webserver?

2️⃣ Do I have to generate the files every 5 minutes, or is it enough to generate only when the website is viewed?

Answering these questions could help to find a solution.

I only used heroku and pythonanywhere so far as services. With them you can create a simple python flask webserver, and host your website.

Thank you!