No description
Find a file
2025-03-09 22:04:17 +10:30
docs Update router notes 2025-03-09 22:04:17 +10:30
hugo Fix hugo site title 2025-03-09 02:29:59 +10:30
.gitignore Remove htpasswd file from VCS 2025-02-03 00:27:59 +10:30
.gitmodules Switch to Hugo Book theme 2025-03-09 02:11:55 +10:30
.hugo_build.lock Add hugo build lock file 2025-03-09 02:14:56 +10:30
Dockerfile Bind mount the html files so they can be updated without stopping the server 2025-02-03 23:26:39 +10:30
install.sh Update readme with hugo build instructions 2025-03-09 02:29:19 +10:30
nginx.conf Add server 2025-02-03 00:26:07 +10:30
notes.service Convert to systemd service 2025-02-06 00:14:43 +10:30
passwd.sh Update password instructions 2025-02-03 00:29:54 +10:30
README.md Update readme with hugo build instructions 2025-03-09 02:29:19 +10:30

Notes server

Set up hugo and build HTML

# Install hugo.
sudo api install hugo

# Build the HTML.
hugo build
```

## Build and run server

```bash
# Set access credentials.
./passwd.sh username password

# Build/rebuild the image.
docker build --no-cache -t notes-server .

# Run the image, listening on port 42069.
docker run -d \
  --name notes-server \
  -v "/var/www/html/notes/hugo/public:/usr/share/nginx/html" \
  -p 42069:80 \
  notes-server

Auth credentials setup

# Overwrite the htpasswd file with new user credentials.
# (Rebuild the image to copy the new credentials.)
./passwd.sh username password