Authio is a multi-tenant SaaS platform designed for secure license and session management.
This is a personal side project where i took my old license authentication sytem and tried to implement a multi tenancy architecture. The old auth that can be found here - click me — contributions and pull requests are welcome!
Ensure the following services are available:
- PostgreSQL server
- Redis server
These services, along with NGINX, are included in the
docker-compose.yml
file to simplify local development.
Create a .env
file based on the provided .env.example
:
cp .env.example .env
To spin up the stack using Docker:
docker compose up
If you intend to run this on a VM, deployment is as simple as uploading the project to your VPS and configuring the files provided here.
If you prefer running Authio with an external PostgreSQL database, execute the following SQL commands to setup the logger:
CREATE USER authio_serilog WITH PASSWORD 'authio.24';
CREATE DATABASE activity_logs;
GRANT ALL PRIVILEGES ON DATABASE activity_logs TO authio_serilog;
\c activity_logs
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO authio_serilog;
GRANT USAGE, CREATE ON SCHEMA public TO authio_serilog;
⚠️ Be sure to replace hardcoded credentials in production environments and setup the admin password after running the migration.