Go to file
a. fox dae8cc36e3 added warning and license to readme 2023-07-12 23:21:16 -04:00
Caddy.pages fixed typos in caddy config 2023-07-12 23:12:41 -04:00
README.md added warning and license to readme 2023-07-12 23:21:16 -04:00
check_repo.sh initial commit 2023-07-12 22:57:34 -04:00
pages-caddy.service initial commit 2023-07-12 22:57:34 -04:00
pages-refresh.service initial commit 2023-07-12 22:57:34 -04:00
pages-refresh.timer initial commit 2023-07-12 22:57:34 -04:00
refresh_repos.sh initial commit 2023-07-12 22:57:34 -04:00

README.md

🦊.📄

a. fox

!!WARNING!!

this is untested and probably broken (at best) - use at your own discretion :)))

a slapdash project to serve static websites from gitea/forgejo without having to spin up nodejs or deal with cloudflare :)

Running

  1. Download caddy with the caddy-exec plugin installed
  2. Replace <CHANGE>.<ME> in caddy.pages with your domain name
  3. Replace <YOUR_GIT_DOMAIN_HERE> in pages-caddy.service with your gitea/forgejo domain
  4. Install ruby
  5. Install jekyll
  6. # adduser pages -m -s /usr/bin/false && sudo -u pages -c "git clone https://dev.focks.website/focks.pages /home/pages/focks.pages"
  7. # chmod +x /home/pages/focks.pages/*.sh
  8. # ln -s /home/pages/focks.pages/pages-caddy.service /etc/systemd/system/pages-caddy.service
  9. # ln -s /home/pages/focks.pages/pages-refresh.service /etc/systemd/system/pages-refresh.service
  10. # ln -s /home/pages/focks.pages/pages-refresh.timer /etc/systemd/system/pages-refresh.timer
  11. # systemctl daemon-reload
  12. # systemctl enable pages-refresh.timer && systemctl start pages-refresh.timer
  13. # systemctl enable pages-caddy.service && systemctl start pages-caddy.service

License

MIT