Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winebarrel/esaop
A web application that redirects human-readable URLs to esa.io posts.
https://github.com/winebarrel/esaop
esa-io golang
Last synced: 21 days ago
JSON representation
A web application that redirects human-readable URLs to esa.io posts.
- Host: GitHub
- URL: https://github.com/winebarrel/esaop
- Owner: winebarrel
- Created: 2022-01-19T10:48:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-10T03:56:22.000Z (about 2 months ago)
- Last Synced: 2024-10-08T10:21:47.149Z (about 1 month ago)
- Topics: esa-io, golang
- Language: Go
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esaop
A web application that redirects human-readable URLs to [esa.io](https://esa.io/) posts.
## Getting Started
1. Register your aplication. see the [documentation](https://docs.esa.io/posts/102#%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE%E7%99%BB%E9%8C%B2)
* Redirect URL: `http://[team].esa.io/auth/callback`
3. Write `esaop.toml`
```sh
cp esaop.toml.sample esaop.toml
vi esaop.toml
```
3. Run `esaop`
4. Open http://localhost:8080/foo/bar/zoo## Redirect Rules
* `http://your-esaop.example.com/foo/bar/zoo`
* Post exists:
* -> `https://[team].esa.io/posts/[post num]`
* Post does not exist:
* -> `https://[team].esa.io/posts/posts/new?category_path=%2Ffoo%2Fbar%2Fzoo`
* `http://your-esaop.example.com/foo/`
* -> `https://[team].esa.io/#path=%2Ffoo`### Use Date/CRON expression
Access date: `2022/03/21`
* `http://your-esaop.example.com/Diary/${yyyy/MM/dd}`
* -> Path: `Diary/2022/03/21`
* `http://your-esaop.example.com/WeeklyMTG/${*,*,*,*,5|yyyy/MM/dd}`
* -> `Path: WeeklyMTG/2022/03/25`
* `http://your-esaop.example.com/MonthlyMTG/${*,*,1,*,*|yyyy/MM/dd}`
* -> `Path: MonthlyMTG/2022/04/01`