From 544ddca576b6ab38736180ac8449bc8004913e53 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Mon, 16 May 2022 16:42:30 -0500 Subject: [PATCH] Add info about Unix socket dynamic hosting --- Website-hosting.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Website-hosting.md b/Website-hosting.md index 42e841d..448e3ee 100644 --- a/Website-hosting.md +++ b/Website-hosting.md @@ -1,7 +1,13 @@ exozyme offers free static and dynamic website hosting with **exopages**, similar to [GitHub pages](https://pages.github.com/). -## Setup +## Static hosting -It only takes two minutes to set up your website. Open up the file explorer in your remote desktop or log in with [SSH](SSH), and navigate to the `/srv/http/pages` folder. Create a new folder named your username to hold the content for your website. Make an actual page by creating a file called index.html and write some text. If you open up https://USERNAME.exozy.me in a web browser with `USERNAME` replaced with your username, you should see your website live in action! +It only takes two minutes to set up your static website. Open up the file explorer in your remote desktop or log in with [SSH](SSH), and navigate to the `/srv/http/pages` folder. Create a new folder to hold the content for your website. Make an actual page by creating a file called index.html and write some text. If you open up https://FOLDER.exozy.me in a web browser with `FOLDER` replaced with your the name of the folder containing your website, you should see it live in action! -For dynamic website hosting, the ports 4200 to 4209 are proxied to the domains https://0.exozy.me to https://9.exozy.me. \ No newline at end of file +## Dynamic hosting + +For dynamic website hosting, the ports 4200 to 4209 are proxied to the domains https://0.exozy.me to https://9.exozy.me. + +You can also create a Unix socket in `/srv/http/pages` which will be proxied to https://SOCKET.exozy.me. + +To run your website automatically, you can either create a cron job with `crontab -e` or a [systemd user service](https://wiki.archlinux.org/title/Systemd/User). For a systemd user service, make sure you enable lingering with `loginctl enable-linger $USER`. \ No newline at end of file