Sign inSign up

rbicker/gooser

By rbicker

•Updated about 6 years ago

Image
0

1.1K

rbicker/gooser repository overview

⁠gooser

gooser is a small GRPC user api written in golang. It provides:

  • functions for creating, updating, deleting users & groups
  • functions for resetting the password
  • groups can have roles assigned

⁠settings

All settings have to be provided by environment variables:

environment variabledescriptiondefault
GOOSER_ADMIN_USERA user with the given username will be created if it does not exist. The user will be put in a group called "admins", having the "admin" role.admin
GOOSER_CONFIRM_URLBase url which will be sent for confirming the user's mail addresshttp://localhost:1234/#/confirm-mail⁠
GOOSER_DEFAULT_LANGUAGEDefault language to be useden
GOOSER_MAIL_FROMThe mail address from which mails will be sent by the serverthe value from GOOSER_SMTP_USERNAME
GOOSER_MONGO_DBName of the mongodb databasedb
GOOSER_MONGO_GROUPS_COLLECTIONName of the mongodb groups collectiongroups
GOOSER_MONGO_URLUrl for the mongodb connectionmongodb://localhost:27017
GOOSER_MONGO_USERS_COLLECTIONName of the mongodb users collectionusers
GOOSER_OAUTH_URLBase url for oauth (will be used to query /userinfo)http://localhost:4444⁠
GOOSER_PORTPort on which the server should be run50051
GOOSER_RESET_PASSWORD_URLBase url for resetting passwordshttp://localhost:1234/#/reset-password⁠
GOOSER_SECRETSecret used for encryption. Make sure to set this variable in production!
GOOSER_SITE_NAMESite name used in mailsgooser
GOOSER_SMTP_HOSTHostname for the smtp connection. If not defined, mails will be written to stdout.
GOOSER_SMTP_PASSWORDPassword for the smtp connection
GOOSER_SMTP_PORTPort for the smtp connection587
GOOSER_SMTP_USERNAMEUsername for the smtp connection

Tag summary

Content type

Image

Digest

Size

9.4 MB

Last updated

about 6 years ago

docker pull rbicker/gooser