mirror of
https://github.com/ordinary-dev/phoenix
synced 2024-09-19 19:30:28 +05:00
Ivan R.
2c08171c7a
I thought this was a good idea. Pros: fewer database calls. Cons: there is no way to revoke the token (except for changing the secret key). I rewrote the authorization as a middleware. Request handlers no longer need to validate the user. |
||
---|---|---|
.github | ||
assets | ||
backend | ||
config | ||
templates | ||
views | ||
.env | ||
.gitignore | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
license.txt | ||
main.go | ||
Makefile | ||
readme.md | ||
screenshot.webp |
Phoenix
Self-hosted start page without the extra stuff.
Features
- No javascript
- Relatively low resource consumption (around 7 MiB of RAM)
- Authorization support
Configuration
Service settings can be set through environment variables.
PHOENIX_DB_PATH
- path to the sqlite database.
Docker-compose example
services:
phoenix:
image: ghcr.io/ordinary-dev/phoenix
volumes:
- phoenix:/var/lib/phoenix
ports:
- 80:8080
restart: unless-stopped
volumes:
phoenix: