Migrating nginx docs to caddy.

This commit is contained in:
Roland 2026-03-07 18:27:43 -07:00
parent 2cfe00e46d
commit 79dad0356f
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
8 changed files with 74 additions and 75 deletions

View file

@ -20,10 +20,10 @@ Examples:
Collections are categorized by kind:
| Kind | Purpose | Default Location |
|-----------|------------------------------------|-----------------------------|
| `channel` | Video channels (YouTube, etc.) | `/media/wrolpi/videos/` |
| `domain` | Website archives (SingleFile, etc.)| `/media/wrolpi/archives/` |
| Kind | Purpose | Default Location |
|-----------|-------------------------------------|---------------------------|
| `channel` | Video channels (YouTube, etc.) | `/media/wrolpi/videos/` |
| `domain` | Website archives (SingleFile, etc.) | `/media/wrolpi/archives/` |
## Automatic Collection Creation
@ -92,15 +92,15 @@ Example: A video uploaded in 2024 titled "Tutorial" goes to
### Template Variables
| Variable | Description |
|-------------------|------------------------------------|
| `%(name)s` | Collection name |
| `%(tag)s` | Tag name (if tagged) |
| `%(kind)s` | Collection kind (channel/domain) |
| `%(upload_year)s` | Year of upload (videos) |
| `%(upload_month)s`| Month of upload (videos) |
| `%(title)s` | Video/archive title |
| `%(ext)s` | File extension |
| Variable | Description |
|--------------------|----------------------------------|
| `%(name)s` | Collection name |
| `%(tag)s` | Tag name (if tagged) |
| `%(kind)s` | Collection kind (channel/domain) |
| `%(upload_year)s` | Year of upload (videos) |
| `%(upload_month)s` | Month of upload (videos) |
| `%(title)s` | Video/archive title |
| `%(ext)s` | File extension |
## Related Documentation

View file

@ -12,28 +12,28 @@ This contains the tables for the API.
### Tables
| Name | Purpose | Relations | `/opt/wrolpi` File |
|------------------|---------------------------------------------------------|---------------------------|-------------------------------|
| alembic_version | Tracks Alembic migration. | | `alembic` |
| archive | Data about a FileGroup Archive. | file_group_id, domain_id | `modules/archive/models.py` |
| channel | Data about a video Channel. | | `modules/videos/models.py` |
| collection | A logical grouping of FileGroups. | tag_id | `wrolpi/collections/models.py`|
| collection_item | Links a FileGroup to a Collection. | collection_id, file_group_id | `wrolpi/collections/models.py`|
| directory | Directories in the media directory. | | `wrolpi/files/models.py` |
| domains | Groups Archives by shared URL domain. | | `modules/archive/models.py` |
| download | Data about what should be downloaded and when. | | `wrolpi/downloader.py` |
| ebook | Data about FileGroups that are books. | file_group_id | `wrolpi/files/ebooks.py` |
| file_group | Each record is a group of files that share a stem. | | `wrolpi/files/models.py` |
| inventory | A collection of items. | | `modules/inventory/models.py` |
| item | An item in an inventory. | inventory_id | `modules/inventory/models.py` |
| map_file | Data about PBF files (if they have been imported, etc.) | | `modules/map/models.py` |
| tag | Data about a Tag (name, color, etc.) | | `wrolpi/tags.py` |
| tag_file | A FileGroup that has been tagged. | tag_id, file_group_id | `wrolpi/tags.py` |
| tag_zim | An entry (article) that was tagged in a Zim file. | tag_id, zim_id, zim_entry | `modules/zim/models.py` |
| video | Data about a FileGroup Video | file_group_id, channel_id | `modules/videos/models.py` |
| wrolpi_flag | Long-term flags that have occurred in the API. | | `wrolpi/flags.py` |
| zim | A Zim file | | `modules/zim/models.py` |
| zim_subscription | A recurring download of a Zim file. | | `modules/zim/models.py` |
| Name | Purpose | Relations | `/opt/wrolpi` File |
|------------------|---------------------------------------------------------|------------------------------|--------------------------------|
| alembic_version | Tracks Alembic migration. | | `alembic` |
| archive | Data about a FileGroup Archive. | file_group_id, domain_id | `modules/archive/models.py` |
| channel | Data about a video Channel. | | `modules/videos/models.py` |
| collection | A logical grouping of FileGroups. | tag_id | `wrolpi/collections/models.py` |
| collection_item | Links a FileGroup to a Collection. | collection_id, file_group_id | `wrolpi/collections/models.py` |
| directory | Directories in the media directory. | | `wrolpi/files/models.py` |
| domains | Groups Archives by shared URL domain. | | `modules/archive/models.py` |
| download | Data about what should be downloaded and when. | | `wrolpi/downloader.py` |
| ebook | Data about FileGroups that are books. | file_group_id | `wrolpi/files/ebooks.py` |
| file_group | Each record is a group of files that share a stem. | | `wrolpi/files/models.py` |
| inventory | A collection of items. | | `modules/inventory/models.py` |
| item | An item in an inventory. | inventory_id | `modules/inventory/models.py` |
| map_file | Data about PBF files (if they have been imported, etc.) | | `modules/map/models.py` |
| tag | Data about a Tag (name, color, etc.) | | `wrolpi/tags.py` |
| tag_file | A FileGroup that has been tagged. | tag_id, file_group_id | `wrolpi/tags.py` |
| tag_zim | An entry (article) that was tagged in a Zim file. | tag_id, zim_id, zim_entry | `modules/zim/models.py` |
| video | Data about a FileGroup Video | file_group_id, channel_id | `modules/videos/models.py` |
| wrolpi_flag | Long-term flags that have occurred in the API. | | `wrolpi/flags.py` |
| zim | A Zim file | | `modules/zim/models.py` |
| zim_subscription | A recurring download of a Zim file. | | `modules/zim/models.py` |
## Map Database
@ -41,4 +41,4 @@ This contains tables for the OpenStreetMap.
### Service
`postgresql@15-map.service`
`postgresql@15-map.service`

View file

@ -61,7 +61,7 @@ OK: WROLPi app systemd exists
OK: WROLPi app service is up
OK: WROLPi app responded with interface
OK: Port 80 is occupied
OK: nginx systemd exists
OK: Caddy systemd exists
OK: Found map database
OK: Map database is initialized
@ -76,8 +76,8 @@ OK: Kiwix app responded
OK: The media directory exists
OK: Can modify media directory
OK: Media directory is a mounted drive
OK: Media directory files are served by nginx
OK: Config can be fetched from nginx
OK: Media directory files are served by Caddy
OK: Config can be fetched from Caddy
OK: Media directory is owned by wrolpi user
OK: Singlefile can be run

View file

@ -75,9 +75,9 @@ If using the Docker containers (the development environment), you may have addit
### Development Web
| Software Project | Purpose |
|-----------------------------|---------------------------------------------------------------|
| [nginx](https://nginx.org/) | Facilitates integration between development docker containers |
| Software Project | Purpose |
|-----------------------------------|---------------------------------------------------------------|
| [Caddy](https://caddyserver.com/) | Facilitates integration between development docker containers |
### Archive