Last active
December 28, 2015 19:39
-
-
Save scottgwald/7552181 to your computer and use it in GitHub Desktop.
example config.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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