Skip to content
/ web Public

Web page using Gorilla web toolkit and MongoDB Driver.

License

Notifications You must be signed in to change notification settings

go-stuff/web

Repository files navigation

web

Build Status Go Report Card License: MIT

Gopher Share

Web page using Gorilla web toolkit and MongoDB Driver.

Deploy

Environment Variables

Example of the environment variables needed to get started:

MONGOURL                 = "mongodb://localhost:27017"
MONGO_DB_NAME            = "test"
MONGOSTORE_SESSION_TTL   = "1200"
MONGOSTORE_HTTPS_ONLY    = "false"
GORILLA_SESSION_AUTH_KEY = "SuperSecret32ByteKey"
GORILLA_SESSION_ENC_KEY  = "SuperSecret16ByteKey"
LDAP_SERVER              = "LDAPSSL"
LDAP_PORT                = "636"
LDAP_BIND_DN             = "SuperSecretBindUsername"
LDAP_BIND_PASS           = "SuperSecretBindPassword"
LDAP_USER_BASE_DN        = "OU=Users,DC=go-stuff,DC=ca"
LDAP_USER_SEARCH_ATTR    = "CN"
LDAP_GROUP_BASE_DN       = "OU=Groups,DC=go-stuff,DC=ca"
LDAP_GROUP_OBJECT_CLASS  = "group"
LDAP_GROUP_SEARCH_ATTR   = "member"
LDAP_GROUP_SEARCH_FULL   = "true"
ADMIN_AD_GROUP           = "ADAdminGroup"

Kubernetes

To deploy in Kubernetes run the following in the root dir:

kubectl apply -R -f deploy/

This will deploy an instance of mongodb along with the demo web app.

Certs

I have included some test certs in the package to connect with go-stuff\grpc. You can generate them the following way:

go run GOROOT/src/crypto/tls/generate_cert.go --host 127.0.0.1 --duration 17520h

License

MIT License

About

Web page using Gorilla web toolkit and MongoDB Driver.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •