fredericalix / yic_auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yourITcity

Authentification service

Use the Dockerfile

docker build

Compile/Run (manualy)

cd server
go build
./server

Configuration via Environment variables

The EXTERNAL_URL is used for setting the link in the token validation email.

EXTERNAL_URL="http://localhost:8080"
PORT=8080
RABBITMQ_URI="amqps://guest:guest@rabbit:5671"
POSTGRESQL_URI="postgresql://postgres:yicpass@db:5432/yic_auth?sslmode=disable"
ADMIN_USERNAME="admin"
ADMIN_PASSWORD="admin"

#TLS_CERT=cert.pem
#TLS_KEY=key.pem

#EXPIRATION_VALIDATION="24h"
#EXPIRATION_APP_TOKEN="8760h"

Generate of the swagger doc

Install go-swagger https://goswagger.io/install.html then generate the swagger specification

cd server
swagger generate spec -o swagger.json

To quick show the doc

swagger serve  swagger.json

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 94.9%Language:HTML 4.3%Language:Dockerfile 0.9%