2025-02-03 00:26:07 +10:30
|
|
|
# Notes server
|
2024-09-24 23:42:37 +09:30
|
|
|
|
2025-03-09 02:29:19 +10:30
|
|
|
## Set up hugo and build HTML
|
2025-02-03 23:43:20 +10:30
|
|
|
|
2025-09-03 23:32:03 +09:30
|
|
|
```bash
|
2025-03-09 02:29:19 +10:30
|
|
|
# Install hugo.
|
2025-03-17 21:48:33 +10:30
|
|
|
sudo apt install hugo
|
2025-02-03 23:43:20 +10:30
|
|
|
|
|
|
|
|
# Build the HTML.
|
2025-03-17 21:48:33 +10:30
|
|
|
cd hugo
|
|
|
|
|
hugo
|
2025-02-03 23:43:20 +10:30
|
|
|
```
|
|
|
|
|
|
2025-09-03 23:32:03 +09:30
|
|
|
## Prepare and run server
|
2025-02-03 00:26:07 +10:30
|
|
|
|
|
|
|
|
```bash
|
2025-02-03 00:29:54 +10:30
|
|
|
# Set access credentials.
|
|
|
|
|
./passwd.sh username password
|
|
|
|
|
|
2025-09-03 23:32:03 +09:30
|
|
|
# Run the service.
|
|
|
|
|
docker compose up -d
|
|
|
|
|
```
|
2025-02-03 00:26:07 +10:30
|
|
|
|
2025-09-03 23:32:03 +09:30
|
|
|
## Changing the login credentials
|
2025-02-03 00:26:07 +10:30
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
# Overwrite the htpasswd file with new user credentials.
|
2025-02-03 23:26:39 +10:30
|
|
|
./passwd.sh username password
|
2025-09-03 23:32:03 +09:30
|
|
|
|
|
|
|
|
# (Rebuild the image to copy the new credentials.)
|
|
|
|
|
docker compose down && docker compose up -d --build
|
2025-02-03 00:26:07 +10:30
|
|
|
```
|