Skip to content

Installation

Ken Williamson edited this page Jan 18, 2020 · 38 revisions

Installing GoAuth2

Install Database

The default database for GoAuth2 is MySql.

  1. Download the go_auth2.sql file here
  2. Run the go_auth2.sql file on a MySql Server

Compile GoAuth2

  1. Run build.sh if you are on a Linux compile on other systems
  2. Copy the following to where you want to run GoAuth2
    • main file
    • static folder

Set Environment Variables

Database Variables

  • GOAUTH2_HOST (database host URL)
  • GOAUTH2_USER (database username)
  • GOAUTH2_PASSWORD (database password)
  • GOAUTH2_DATABASE (database name)
  • AUTHENTICATION_SERVICE (Authentication server URL: default is GoAuth2Users)

Run GoAuth2

  1. Run the main binary file on your platform