Commit Graph

110 Commits

Author SHA1 Message Date
AJ ONeal 787b83b84a support .env, improve authorization hooks, other updates 2020-04-30 05:11:03 -06:00
AJ ONeal e740d2ca0f heavier refactoring 2020-04-30 04:43:36 -06:00
AJ ONeal 09d296df2a minor fs denesting 2020-04-29 23:52:44 -06:00
AJ ONeal cf8defbe3d minor denesting 2020-04-29 23:49:09 -06:00
AJ ONeal b8a7c9e481 make admin domain more configurable 2020-04-28 01:16:16 -06:00
AJ ONeal 880da4d685 make Prettier 2020-04-28 00:58:26 -06:00
AJ ONeal ef34fefc39 cleanup 2020-04-28 00:47:31 -06:00
AJ ONeal eb04ba96c8 vendor deps 2020-04-28 00:26:14 -06:00
AJ ONeal 3597ebff28 minor refactor 2020-04-28 00:26:00 -06:00
tigerbot 01de157cfe Merge branch 'client' 2017-04-17 15:15:22 -06:00
tigerbot 76b5e1b102 fixed some go formatting problems 2017-04-17 14:59:45 -06:00
tigerbot 3e30137b36 fixed bug masked by changes I opted not to commit 2017-04-17 14:57:32 -06:00
tigerbot c024c1b88f added cmd line arguments to the client 2017-04-04 12:09:20 -06:00
tigerbot c1c18b71b0 added support for different port w/ different domains on same service 2017-04-03 17:56:28 -06:00
tigerbot b44fe740af move SNI to separate package for both client and server 2017-04-03 17:37:29 -06:00
tigerbot dcdc26068b Merge branch 'master' into client 2017-04-03 17:01:23 -06:00
tigerbot 3848be53bd tweaked behavior after local connection read 2017-04-03 15:51:44 -06:00
Henry e637277bb5 Merge branch 'load-balance' into 'master'
Load balance

See merge request !2
2017-04-01 17:32:50 +00:00
Henry Camacho fb5937dbe7 Completed rename to server. 2017-03-31 23:31:16 -05:00
Henry Camacho b956a160c9 Renamed generic listener to server 2017-03-31 23:21:30 -05:00
Henry Camacho 320afc53d2 Renaming to server. 2017-03-31 23:19:50 -05:00
tigerbot fbed26d94b changed client to retry after disconnect 2017-03-30 18:20:44 -06:00
tigerbot c80c87c667 changed the routine structure of the client 2017-03-30 18:20:37 -06:00
tigerbot 99676ef4bf made it easier to send multiple messages with the same header 2017-03-30 13:28:00 -06:00
tigerbot 663caa5cc7 first commit of client
hard coded values and fairly limited error handling
2017-03-29 18:29:03 -06:00
tigerbot 119c9937d7 changed configuration read to work by default 2017-03-29 18:28:28 -06:00
Henry Camacho 824a587eae Adding support for config path and config file 2017-03-27 16:09:25 -05:00
Henry Camacho a528352e28 Added support for LumberJack logging and —log argument like caddy
- I don’t think the way I am doing logging is correct, however it was the only way I could figure to get the package level customizations and flags I wanted while leveraging lumberjack.
- altered tunnel end point interface to AJ’s specification in issue #18
- added an InitLogging function package level, that is called by main to init.
2017-03-26 17:33:40 -05:00
Henry Camacho 2623741ef2 Added Missing Domain 2017-03-25 20:43:31 -05:00
Henry Camacho a72bbc63e4 Updated to support load balanced API Rest
- system collects all the domains, servers, and stats. /domains
- added support for a WSS state, displays on the UI
- moved all server related domain structures to ServerDomain* etc. to avoid collision with Domains
- create new Domains structure to handle Domains, Domain, Servers and Traffic at each level.
- updated initial lastUpate to the connection time rather than 0 which gave a silly duration.
- added properties for DomainTrack (Requests and Responses)
2017-03-25 20:33:09 -05:00
Henry Camacho 41adbfaef5 ServerName is now 1st domain in token. Awaiting new token structure for true ServerName. 2017-03-25 17:22:28 -05:00
Henry Camacho f809794f22 Minor tweaks to documentation 2017-03-25 15:53:43 -05:00
Henry Camacho ee54c3d721 Adjusted Documentation to include Load Balancer Test 2017-03-25 15:39:44 -05:00
Henry Camacho 0e1f99c8da Round Robin Load Balancing feature enabled
- the system implements a rough round robin also.
- members that are removed, do not remove preserving order.
- this many skew RR slightly, the small trade of with a non-order slice removal
- fixed issue with reaper, would not reap connections that had closed based on write failure
- reduced well to 120 seconds.
- place holder for other LB ALGO’s like least-connections.
- at this time no support for heath checks.
2017-03-25 15:01:57 -05:00
Henry Camacho 55e49fb966 Merge branch 'admin' of git.daplie.com:Daplie/go-rvpn-server into admin
# Conflicts:
#	rvpn/genericlistener/conn_wedge.go
2017-03-24 17:50:55 -05:00
Henry Camacho 1701b1acb0 Back and running 2017-03-24 17:45:54 -05:00
tigerbot 0a7ef4c601 fixed bug with peeking I introduced during the cleanup 2017-03-23 17:57:43 -06:00
Henry Camacho 12c8275326 Admin Status 2017-03-23 18:10:49 -05:00
Henry Camacho 2233e08ca1 Put the 1 char peek back in. With TLS byte awaiting aren’t valid, however they are valid with non-tis. 2017-03-23 18:02:38 -05:00
tigerbot c7b6a4a000 changed GetState and State to State and SetState
https://golang.org/doc/effective_go.html#Getters
2017-03-22 17:45:47 -06:00
tigerbot 9acf50c2ff simplified mutex handling and defer statements 2017-03-22 16:53:12 -06:00
tigerbot 92f951544b simplified some function inputs and returns 2017-03-22 16:53:12 -06:00
tigerbot 87a1d9c0ae cleaned up a few import statements 2017-03-22 16:53:12 -06:00
tigerbot f163b4ec7d rewrote how packing/unpacking is handled 2017-03-22 16:53:12 -06:00
tigerbot 8fb732e3b8 cleaned up a few of the packer functions 2017-03-22 16:53:12 -06:00
tigerbot ce512ece34 removed empty packages and files 2017-03-22 16:53:12 -06:00
Henry Camacho ba67cebb29 Several Considerations for Load Balancing, Collection of Bulk ServerStatus
- added a number of global status collections
- this requires wedging into things..
- removing direct address to come functions putting them though serverStatus
2017-03-19 19:04:47 -05:00
Henry Camacho 057ec00f82 Connection Track Read/Write Map issue, implemented mutex around the map. 2017-03-19 09:57:28 -05:00
Henry Camacho 4696ec4ec2 Added support for default load balancer method. 2017-03-19 09:56:33 -05:00
Henry Camacho 5dae8b1f9e Updated to support domain counts 2017-03-18 14:45:12 -05:00