Code for this server
Go to file
Kelvin Ly 6d7675fe78 Small commit to resync stuff after a bad commit from within the server 2023-05-16 22:53:10 -04:00
static@bfc0eb8443 Small commit to resync stuff after a bad commit from within the server 2023-05-16 22:53:10 -04:00
.gitignore Hopefully get the main server to forward requests correctly, and make the helper scripts detect their directory to determine the right binary name 2019-07-18 23:11:12 -04:00
.gitmodules Remove resume submodule, minor other updates 2020-06-20 12:33:22 +00:00
README.md Add README 2018-09-28 19:11:20 -04:00
bootstrap.sh Move to a different location 2019-07-11 14:01:40 +00:00
cache.go Fix bugs and refactor response collector out into its own file TODO write tests for everything 2019-11-20 09:06:04 -05:00
collector.go Fix bugs and refactor response collector out into its own file TODO write tests for everything 2019-11-20 09:06:04 -05:00
go.mod Modernize with Go modules, add redirect for mushroom server 2023-05-17 02:40:16 +00:00
go.sum Modernize with Go modules, add redirect for mushroom server 2023-05-17 02:40:16 +00:00
gogs.service Add gogs.service details 2020-06-20 12:33:46 +00:00
gzip.go Implement image resizing/caching TODO add tests for these eventually 2019-11-20 08:15:30 -05:00
install.sh Remove resume submodule, minor other updates 2020-06-20 12:33:22 +00:00
main-server.service Remove resume submodule, minor other updates 2020-06-20 12:33:22 +00:00
main.go Modernize with Go modules, add redirect for mushroom server 2023-05-17 02:40:16 +00:00
markdown.go Make resize point same as resize to ensure seamless images 2019-11-20 23:40:59 -05:00
resize.go Shrink down images on resize 2019-12-03 18:09:31 -05:00
rules.v4 Fix port number for HTTPS 2018-09-28 23:05:17 +00:00

README.md

A website

This is my personal website, feel free to steal the server and look at the code if there's anything useful there. There's not much to it, but it currently:

  • uses blackfriday/github_flavored_markdown to convert markdown into HTML
  • has a .service file that lets it run automatically on startup
  • daemonizes itself using go-daemon so you get nice log and pid files
  • has a set of iptables-persistent rules to avoid needing to run as root

TODOs

  • make a cronjob to automatically renew the certificate
  • add a header bar and make the footer look a little nicer
  • do cool stuff so I can post about it here I guess