mirror of
https://github.com/ordinary-dev/phoenix
synced 2024-09-19 19:30:28 +05:00
7fc743abdb
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v2...v3) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github | ||
assets | ||
config | ||
database | ||
templates | ||
views | ||
.env | ||
.gitignore | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
license.txt | ||
main.go | ||
Makefile | ||
readme.md | ||
screenshot.webp | ||
security.md |
Phoenix
Self-hosted start page without the extra stuff.
Features
- No javascript
- Relatively low resource consumption (around 7 MiB of RAM)
- Authorization support
- SSO via Trusted Header Auth (Reverse Proxy)
- Font Awesome integration
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_ENABLEGINLOGGER | Enable gin's logging middleware. Can create a lot of logs. | false |
P_PRODUCTION | Is this instance running in production mode? | true |
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 |
Appearance settings:
Variable | Description | Default |
---|---|---|
P_TITLE | Website title | Phoenix |
P_FONTFAMILY | The font used on the site. Inserted directly into css. | sans-serif |
Docker-compose example
services:
phoenix:
image: ghcr.io/ordinary-dev/phoenix
volumes:
- phoenix:/var/lib/phoenix
ports:
- 80:8080
environment:
P_SECRETKEY: "your-random-string"
P_DEFAULTUSERNAME: "admin"
P_DEFAULTPASSWORD: "super-password"
restart: unless-stopped
volumes:
phoenix:
Icons
You can use the free version of Font Awesome.
The name of the icon must be specified in the following form: set name/icon name
, for example: brands/github
or regular/credit-card
.