A FusionAuth server https://fusionauth.io/ resource repository for running it on RockyLinux 9.x
Install required packages:
dnf install wget nano postgresql-server postgresql-contrib nginx
Prepare PostgreSQL server.
/usr/bin/postgresql-setup --initdb
Edit PostgreSQL configfiles for security
vi /var/lib/pgsql/data/pg_hba.conf
# change to following line in this file:
host all all 127.0.0.1/32 ident
# to:
host all all 127.0.0.1/32 scram-sha-256
# Save the file after modification.
vi /var/lib/pgsql/data/postgresql.conf
# change the following line in this file:
#password_encryption = md5 # md5 or scram-sha-256
# to:
password_encryption = scram-sha-256 # md5 or scram-sha-256
# Save the file after modification.
Create Database and user in PostgreSQL
systemctl enable postgresql --now
sudo -u postgres psql
postgres=# create database fusionauth;
postgres=# create user fusionauth with encrypted password 'your-supersecret-password';
postgres=# alter database fusionauth owner to fusionauth;
postgres=# \q