Skip to content

Installation

Ken Williamson edited this page Mar 15, 2020 · 4 revisions

Installation

Install Database

The default database for GoAuth2 is MySql.

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

Docker Installation

If you would like to install on Docker:

https://hub.docker.com/r/ulboralabs/goauth2-users

docker pull ulboralabs/goauth2-users

OR

Compile GoAuth2Users

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

Set Environment Variables

Database Variables

  • GO_AUTH2_USERS_HOST (database host URL)
    • when not set, defaults to: localhost:3306
  • GO_AUTH2_USERS_DB_USER (database username)
    • when not set, defaults to: admin
  • GO_AUTH2_USERS_DB_PASSWORD (database password)
    • when not set, defaults to: admin
  • GO_AUTH2_USERS_DATABASE (database name)
    • when not set, defaults to: go_auth2_users

Run GoAuth2Users

  1. Run ./main to start GoAuth2Users on your platform

Docker Installation

  1. ./main runs automatically on Docker