Add README

This commit is contained in:
teutat3s 2023-03-06 23:22:13 +01:00
parent 529b194a54
commit 6f9ed51bfb
Signed by: teutat3s
GPG key ID: 18DAE600A6BBE705

31
README.md Normal file
View file

@ -0,0 +1,31 @@
# kimai-fly
[Kimai](https://www.kimai.org) on fly.io
```
flyctl volumes create kimaidata --size 3
flyctl proxy 3306 -a inv-db
# Use existing mariadb or create new, follow:
# https://fly.io/docs/app-guides/mysql-on-fly/
# If using an existing one, create new mariadb user + db
# mysql -h localhost -P 3306 -u root -p
# URL encode your mail address and password like this for MAILER_URL
nix run nixos#php -- -r "echo urlencode('jfw@miom.space');"
flyctl secrets set \
MAILER_URL=smtps://jfw%40miom.space:your-great-password@mail.yourprovider.de:465 \
DB_PASS=MYSQL_PASSWORD \
APP_SECRET=change_this_to_something_unique \
ADMIN_PASS=ADMIN_PASSWORD
flyctl deploy
flyctl ssh issue
flyctl ssh console
# On the vm
bash
apt update && apt install -y vim
mkdir /opt/kimai/public/assets
# Edit /opt/kimai/public/assets/local.yaml and paste custom keycloak config, see:
# https://www.kimai.org/documentation/1.30.0/saml-keycloak.html
# Back on your laptop
flyctl apps restart kimai-app
flyctl certs create track.faenix.eu
```