No description
Find a file
2025-03-09 02:15:19 +10:30
docs Update DNS server notes 2025-03-09 02:15:19 +10:30
hugo Override scrollbar styling 2025-03-09 02:14:29 +10:30
notes_theme WIP custom theme 2025-03-02 00:27:01 +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 Convert to systemd service 2025-02-06 00:14:43 +10:30
mkdocs.yml WIP custom theme 2025-03-02 00:27:01 +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 build instructions 2025-02-03 23:43:20 +10:30

Notes server

Set up mkdocs and build HTML

# Set up a Python virtualenv for mkdocs.
sudo apt install virtualenv
virtualenv .venv
. .venv/bin/activate

# Install mkdocs.
pip install mkdocs

# Build the HTML.
mkdocs 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 --mount type=bind,src=./site,dst=/usr/share/nginx/html -p 42069:80 -t 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