No description
Find a file
2025-04-30 00:42:28 +09:30
docker Fix install script 2025-04-27 01:36:29 +09:30
docs Add OJ 2025-04-30 00:42:28 +09:30
hugo Ignore hugo build lock files 2025-03-17 21:52:05 +10:30
.gitignore Ignore hugo build lock files 2025-03-17 21:52:05 +10:30
.gitmodules Switch to Hugo Book theme 2025-03-09 02:11:55 +10:30
.tmuxinator.yml tmuxinator config 2025-03-28 23:49:00 +10:30
push.sh Use rsync to push build files 2025-03-28 23:49:52 +10:30
README.md Update readme 2025-03-17 21:48:33 +10:30

Notes server

Set up hugo and build HTML

# Install hugo.
sudo apt install hugo

# Build the HTML.
cd hugo
hugo
```

## 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