This repository provides a "standardized" solution to test, deploy, and maintain various web "services" provided by Recovery Source.
Important directories:
- data: Source data for all services
- web_index: Directory listing of 12-Step groups
- nameserver: Configuration for DNS services
- forwarder: Configuration for "HTTP Redirector" service
- sync: Python module used to synchronize data
- test: Data used for automated testing
Sober Pages service as a directory services for 12-step focused websites and aims to provide support for basic maintenance tasks.
See this website running at https://sober.page/.
Everything the Recovery Source project knows about 12-Step groups.
Location: data/domains/<group>.yaml
Format [YAML]:
<subdomain>:
title: website title
keywords: list, of, regions
target: <URL>
type: forward OR cname
feed: <type>^<URL>[^<options>]
Required: subdomain, title, target
Rules:
data/domains/*.yaml
MUST be valid YAML- [
title
,keywords
] may be mixed-case, all other fields must be lower-case target
should be the shortest functional URL (without path/query/fragment)target
should include www if upstream redirects to this addressfeed
may be a YAML list of feed locations (type+url)subdomain
is limited to one (1) pertarget
subdomain
format should follow[type][area]-[district]
(e.g. aa0-5)subdomain
may append characters to resolve conflicts (e.g. aa1-4north)subdomain
should use the lowest represented district as canonicalsubdomain
can be used as a SP alias to redirect additional-represented districtsfeed/type
must be one of [aamod
,tsml
]
Data synchronization is done using the sync
python module:
$ cd services && python3 -m sync -h