web

command module
v0.0.0-...-6fadc6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 19 Imported by: 0

README

web

Build Status Go Report Card

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL