Skip to content

Instantly share code, notes, and snippets.

@scottgwald
Last active December 28, 2015 19:39
Show Gist options
  • Save scottgwald/7552181 to your computer and use it in GitHub Desktop.
Save scottgwald/7552181 to your computer and use it in GitHub Desktop.
example config.go
package main
const (
// You can leave these
version = 0 // Defines the websocket protocol version
debug = true // Set to false to turn off logging every API request.
allowAllUsers = true // If true then all users who auth can access the server, false admin must verify
sessionName = "wearscript"
scopes = "https://www.googleapis.com/auth/userinfo.profile"
ravenDSN = "" // Leave blank unless you are using Raven/Sentry for logging
// You need to fill in the rest
secret = "wwwwwwww" // Make it a random string
// Created at http://code.google.com/apis/console, these identify our app for the OAuth protocol.
clientId = "xxxxxxxx.apps.googleusercontent.com"
clientSecret = "yyyyyyyy"
// Server info
fullUrl = "http://zzzzzzzz.dyndns-free.com:8080" // Url to the server (e.g., https://example.com) for mirror api
wsUrl = "ws://zzzzzzzz.dyndns-free.com:8080" // Url websocket clients use (e.g., wss://example.com or ws://example.com)
redisServerPort = "localhost:6379" // Fill in with your host:port
servePort = "8080" // Fill in with the port you want to host on
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment