No description
| docs | ||
| hugo | ||
| .gitignore | ||
| .gitmodules | ||
| .hugo_build.lock | ||
| Dockerfile | ||
| install.sh | ||
| nginx.conf | ||
| notes.service | ||
| passwd.sh | ||
| README.md | ||
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