Michael Honkoop 9881ba41ba Update 'FusionAuth/README.md' hai 8 meses
..
README.md 9881ba41ba Update 'FusionAuth/README.md' hai 8 meses

README.md

Description

A FusionAuth server https://fusionauth.io/ resource repository for running it on RockyLinux 9.x

Installation

To setup your FusionAuth server start out with a fresh RockyLinux 9.x server/vps/LXC - i use a ProxMox (https://www.proxmox.com/en/proxmox-ve) LXC, and will assumes that your server has: - (atleast) 4Gb of memory available. - Firewall ports for HTTP/HTTPS should be open(ed) - SSH acccess to the box.

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