My personal portfolio.
- C 99.4%
- HTML 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| conf | ||
| includes | ||
| posts | ||
| src | ||
| static | ||
| .gitignore | ||
| index.html | ||
| main.c | ||
| Makefile | ||
| README.md | ||
| robots.txt | ||
Portfolio
My personal website.
Installation
Webserver
The webserver is powered by mongoose.
Clone this repository and build the server binary. Also link /var/www to:
$ make
$ mkdir -p /var/www
$ ln -s $PWD /var/www/portfolio
Copy the systemd unit file into the correct location and enable the service:
$ cp $PWD/conf/portfolio.service /etc/systemd/system/portfolio.service
$ systemctl daemon-reload
$ systemctl enable portfolio.service
$ systemctl start portfolio.service
Forgejo
Follow instructions here.
Forgejo should be running as a systemd service on port 3000 once finished.
NGINX
We use Let's Encrypt to get TLS certificates. Run the following on the host:
$ certbot certonly --standalone -d jrpotter.com -d www.jrpotter.com -d git.jrpotter.com
It is assumed that the resulting certificate and key are located at:
/etc/letsencrypt/live/jrpotter.com/fullchain.pem/etc/letsencrypt/live/jrpotter.com/privkey.key
Copy the systemd unit file into the correct location and enable the service:
$ cp $PWD/conf/nginx.service /etc/systemd/system/nginx.service
$ systemctl daemon-reload
$ systemctl enable nginx.service
$ systemctl start nginx.service