From 1e11acb9cf5e5c8642e4f9d5c44455fd14045502 Mon Sep 17 00:00:00 2001 From: JackJ30 Date: Sun, 11 May 2025 23:32:25 -0400 Subject: initial commit --- nginx/homepage.conf | 6 ++++++ scripts/constant-sync.sh | 5 +++++ scripts/setup.sh | 5 +++++ zola-static/public/index.html | 1 + 4 files changed, 17 insertions(+) create mode 100644 nginx/homepage.conf create mode 100755 scripts/constant-sync.sh create mode 100755 scripts/setup.sh create mode 100755 zola-static/public/index.html diff --git a/nginx/homepage.conf b/nginx/homepage.conf new file mode 100644 index 0000000..bc69fbb --- /dev/null +++ b/nginx/homepage.conf @@ -0,0 +1,6 @@ +server { + location / { + root /var/www/homepage; + index index.html; + } +} \ No newline at end of file diff --git a/scripts/constant-sync.sh b/scripts/constant-sync.sh new file mode 100755 index 0000000..c016b44 --- /dev/null +++ b/scripts/constant-sync.sh @@ -0,0 +1,5 @@ +#!/bin/bash +while true; do + rsync -av --delete ./zola-static/public/ /var/www/homepage/ + sleep 5 # wait 5 seconds before the next sync +done diff --git a/scripts/setup.sh b/scripts/setup.sh new file mode 100755 index 0000000..d9fb749 --- /dev/null +++ b/scripts/setup.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +ln -sf $(pwd)/nginx/homepage.conf /etc/nginx/sites-enabled/homepage.conf +mkdir /var/www/homepage/ +rsync -av --delete ./zola-static/public/ /var/www/homepage/ diff --git a/zola-static/public/index.html b/zola-static/public/index.html new file mode 100755 index 0000000..f666065 --- /dev/null +++ b/zola-static/public/index.html @@ -0,0 +1 @@ +Jack Jamison's Brand New Homepage! -- cgit v1.2.3