You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Dan Ballard 92c6979b2b README update for windows build instructions 2 months ago
app server need .Stop() and .Destroy() 3 months ago
docker change -exportTofuBundle to -exportServerBundle 3 months ago
metrics stub out pidusage calls for windows, and also check errors 2 months ago
storage golint -> staticcheck and required changes 2 months ago
testing golint -> staticcheck and required changes 2 months ago
.drone.yml golint -> staticcheck and required changes 2 months ago
.gitignore Replace legacy message store with sqlite3 message store 9 months ago
README.md README update for windows build instructions 2 months ago
go.mod addressing PR concerns + adding servers test 3 months ago
go.sum addressing PR concerns + adding servers test 3 months ago
server.go golint -> staticcheck and required changes 2 months ago
serverConfig.go serverConfig mkdirall 3 months ago
server_tokenboard.go adding 'servers' interface to manage multiple servers and support for encrypted configs 4 months ago
servers.go clean up: locks, set key in order to support delete 3 months ago
servers_test.go server need .Stop() and .Destroy() 3 months ago

README.md

Cwtch Server

Building

Pretty straight forward:

  • build the app in app/ with go build
  • build the docker container in docker/ with docker build . -t openpriv/server

Windows

The server package relies on sqlite which in turn requires the use of CGO. As per this issue that means TDM-GCC is required to be installed and used to compile on Windows

Running

  • cd app
  • go build
  • ./app

The app takes the following arguments

  • -debug: enabled debug logging
  • -exportServerBundle: Export the server bundle to a file called serverbundle

The app takes the following environment variables

  • CWTCH_HOME: sets the config dir for the app

env CONFIG_HOME=./conf ./app

Using the Server

When run the app will output standard log lines, one of which will contain the tofubundle in purple. This is the part you need to capture and import into a Cwtch client app so you can use the server for hosting groups

Docker

Build by executing docker build -f docker/Dockerfile .

or run our prebuild ones with

pull openpriv/cwtch-server

and run it. It stores all Cwtch data in a Volume at /var/lib/cwtch