phoenix/readme.md

60 lines
2.7 KiB
Markdown
Raw Normal View History

2023-04-06 10:36:11 +05:00
# Phoenix
2023-11-01 21:12:43 +05:00
[![Go Report Card](https://goreportcard.com/badge/github.com/ordinary-dev/phoenix)](https://goreportcard.com/report/github.com/ordinary-dev/phoenix)
2023-04-09 12:22:50 +05:00
![Screenshot](screenshot.webp)
2023-04-06 10:36:11 +05:00
Self-hosted start page without the extra stuff.
## Features
- No javascript
2023-04-09 19:51:20 +05:00
- Authorization support
- SSO via Trusted Header Auth (_Reverse Proxy_)
2023-09-03 19:08:33 +05:00
- Font Awesome integration
2024-04-01 23:49:41 +05:00
- Multiple styles
- Export and import
## Configuration
Service settings can be set through environment variables.
| Variable | Description | Default |
| --- | --- | --- |
| P_DBPATH | Path to the sqlite database. | Docker: `/var/lib/phoenix/db.sqlite3` |
| P_SECRETKEY | A long and random secret string used for authorization. | |
| P_LOGLEVEL | Log level settings: `debug`, `info`, `warning`, `error`, `fatal` | `warning` |
| P_HEADERAUTH | Enable Trusted Header Auth (SSO) | `false` |
| P_DEFAULTUSERNAME | Data for the first user. | |
| P_DEFAULTPASSWORD | Data for the first user. | |
| P_SECURECOOKIE | Controls the "secure" option for a token cookie. | `true` |
2023-04-09 19:32:35 +05:00
2023-11-01 23:18:33 +05:00
Appearance settings:
| Variable | Description | Default |
| --- | --- | --- |
2023-11-02 21:20:10 +05:00
| P_TITLE | Website title | `Phoenix` |
| P_FONTFAMILY | The font used on the site. Inserted directly into css. | `sans-serif` |
2023-11-01 23:18:33 +05:00
2023-04-09 19:32:35 +05:00
## Docker-compose example
```yml
services:
phoenix:
image: ghcr.io/ordinary-dev/phoenix
volumes:
- phoenix:/var/lib/phoenix
ports:
2023-04-09 19:38:43 +05:00
- 80:8080
environment:
P_SECRETKEY: "your-random-string"
P_DEFAULTUSERNAME: "admin"
P_DEFAULTPASSWORD: "super-password"
2023-04-09 19:32:35 +05:00
restart: unless-stopped
volumes:
phoenix:
```
2023-09-03 19:08:33 +05:00
## Icons
You can use the free version of [Font Awesome](https://fontawesome.com/search).
The name of the icon must be specified in the following form: `set name/icon name`, for example: `brands/github` or `regular/credit-card`.