Find a file
dependabot[bot] 5ae3bdd359 Bump the go-deps group with 4 updates
Bumps the go-deps group with 4 updates: [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt), [golang.org/x/crypto](https://github.com/golang/crypto), [gorm.io/driver/sqlite](https://github.com/go-gorm/sqlite) and [gorm.io/gorm](https://github.com/go-gorm/gorm).


Updates `github.com/golang-jwt/jwt/v5` from 5.2.0 to 5.2.1
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v5.2.0...v5.2.1)

Updates `golang.org/x/crypto` from 0.17.0 to 0.21.0
- [Commits](https://github.com/golang/crypto/compare/v0.17.0...v0.21.0)

Updates `gorm.io/driver/sqlite` from 1.5.4 to 1.5.5
- [Commits](https://github.com/go-gorm/sqlite/compare/v1.5.4...v1.5.5)

Updates `gorm.io/gorm` from 1.25.5 to 1.25.7-0.20240204074919-46816ad31dde
- [Release notes](https://github.com/go-gorm/gorm/releases)
- [Commits](https://github.com/go-gorm/gorm/commits)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-deps
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: gorm.io/driver/sqlite
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-deps
- dependency-name: gorm.io/gorm
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-25 15:58:10 +05:00
.github build: group dependabot pull requests 2024-03-25 15:56:01 +05:00
assets Simplify favicon 2023-11-02 21:50:36 +05:00
config feat!: migrate to net/http 2024-03-25 15:52:18 +05:00
database feat!: migrate to net/http 2024-03-25 15:52:18 +05:00
jwttoken feat!: migrate to net/http 2024-03-25 15:52:18 +05:00
templates feat!: migrate to net/http 2024-03-25 15:52:18 +05:00
views feat!: migrate to net/http 2024-03-25 15:52:18 +05:00
.env Add an option to control the secure parameter for cookies 2023-11-02 21:50:35 +05:00
.gitignore Add support for basic SSO via Trusted Header Auth 2023-08-28 00:26:16 +10:00
Dockerfile Update base docker images 2023-11-02 21:50:36 +05:00
go.mod Bump the go-deps group with 4 updates 2024-03-25 15:58:10 +05:00
go.sum Bump the go-deps group with 4 updates 2024-03-25 15:58:10 +05:00
license.txt Create license.txt 2023-04-09 20:03:27 +05:00
main.go feat!: migrate to net/http 2024-03-25 15:52:18 +05:00
Makefile Simplify favicon 2023-11-02 21:50:36 +05:00
readme.md Add appearance settings 2023-11-02 21:50:36 +05:00
screenshot.webp Add a screenshot 2023-04-09 12:22:50 +05:00
security.md Create security.md 2023-07-22 22:18:05 +05:00

Phoenix

Go Report Card

Screenshot

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.