Commit Graph

59 Commits

Author SHA1 Message Date
Ken-Håvard Lieng
6985dd16da Handle kick, rename server to network 2020-06-15 10:58:51 +02:00
Ken-Håvard Lieng
ead3b37cf9 Collapse and log join, part and quit, closes #27, log nick and topic changes, move state into irc package 2020-06-03 03:04:38 +02:00
Ken-Håvard Lieng
e33b9f05e4 Implement DCC streaming 2020-05-20 07:21:12 +02:00
Ken-Håvard Lieng
b92f5cfb43 Send download link on completion 2020-05-17 06:34:59 +02:00
Ken-Håvard Lieng
8305dd561d Log direct messages and keep track of open direct message tabs 2020-05-06 04:19:55 +02:00
Ken-Håvard Lieng
360bed00f9 Implement old storage.Path API 2020-04-20 03:02:15 +02:00
Pierre-Alain TORET
ca81475fa5 Add option --config and --data to specify where to store the configuration and the data 2020-03-20 18:24:17 +01:00
Ken-Håvard Lieng
24b26aa85f Add channel joining UI, closes #37 2019-01-23 07:34:39 +01:00
Ken-Håvard Lieng
63cf65100d Pull https handling out into a new package 2018-12-31 03:33:05 +01:00
Ken-Håvard Lieng
67e32661f1 Update dependencies 2018-12-31 02:20:22 +01:00
Ken-Håvard Lieng
fc643483be Dont redirect private IPs and localhost 2018-12-17 12:45:33 +01:00
Ken-Håvard Lieng
6c3a5777c4 Use certmagic, simplify config, set HTTP timeouts and a modern TLSConfig 2018-12-16 12:32:03 +01:00
Ken-Håvard Lieng
71f79fd84e Pass in config struct 2018-12-11 10:54:05 +01:00
Ken-Håvard Lieng
df71c54d37 Use a map to serve files 2018-11-27 12:07:48 +01:00
Ken-Håvard Lieng
9b40934654 Grab referer in /init handler instead of getIndexData() 2018-11-22 10:40:29 +01:00
Ken-Håvard Lieng
90785aba20 Create sessions on boot requests instead of websocket handshakes 2018-11-17 11:52:36 +01:00
Ken-Håvard Lieng
04852cdf58 Implement http.Handler in server.Dispatch 2018-11-09 07:32:47 +01:00
Ken-Håvard Lieng
4b4b2394a9 Link rel preload boot data 2018-11-09 07:12:43 +01:00
Ken-Håvard Lieng
70b2c4df47 Dont refresh session keys on bootloader requests 2018-11-08 08:39:47 +01:00
Ken-Håvard Lieng
fd6c8a70e2 Append pathname to bootloader request 2018-11-07 02:07:23 +01:00
Ken-Håvard Lieng
ca222ff10d Add cache-first service worker 2018-11-06 11:13:32 +01:00
Ken-Håvard Lieng
c8c09bce8c Add option to choose which address to listen on, closes #31 2018-08-22 00:31:29 +02:00
Ken-Håvard Lieng
c975c5d120 Add option to hex encode the source IP of a client and use it as the ident, closes #24 2018-08-10 21:02:09 +02:00
Ken-Håvard Lieng
c49bbc72d4 Do all session pruning in a single goroutine 2018-06-01 05:40:12 +02:00
Ken-Håvard Lieng
e0200a2b2a Name all storage interface params, return slices of pointers 2018-06-01 04:16:38 +02:00
Ken-Håvard Lieng
24f9553aa5 Persist, renew and delete sessions, refactor storage package, move reusable packages to pkg 2018-05-31 23:24:59 +02:00
Ken-Håvard Lieng
637f0d956b Wait until a websocket connection comes in before creating new anonymous sessions 2018-05-22 03:57:52 +02:00
Ken-Håvard Lieng
0648b67cb8 Use random session IDs instead of jwt 2018-04-26 21:32:21 +02:00
Ken-Håvard Lieng
0f5c3b57d2 Handle channel names ending with a slash better 2017-06-13 04:25:59 +02:00
Ken-Håvard Lieng
1beb56abcf Print some info when running in dev mode 2017-06-07 00:17:46 +02:00
Ken-Håvard Lieng
0b13431b83 Always listen on port 1337 in dev mode since the client expects it 2017-05-21 11:11:16 +02:00
Ken-Håvard Lieng
eedc687f18 Send the 25 last messages for each channel to the client on load 2017-04-20 01:51:55 +02:00
Ken-Håvard Lieng
37c8e780bc Add HTTP/2 push 2017-04-15 04:48:24 +02:00
Ken-Håvard Lieng
cd317761c5 Switch from Godep to go vendoring 2016-03-01 01:51:26 +01:00
Ken-Håvard Lieng
1a7360a573 Allow all websocket origins in development mode 2016-01-27 18:03:38 +01:00
Ken-Håvard Lieng
04d61dd9a6 Only allow websocket connections from the same origin 2016-01-26 20:14:19 +01:00
Ken-Håvard Lieng
df02d27674 Set long cache-control and add a hash to css and js urls, clean some things up 2016-01-25 06:01:40 +01:00
Ken-Håvard Lieng
f1c3326af1 Update server dependencies 2016-01-15 19:48:03 +01:00
Ken-Håvard Lieng
fb54d4966c Store auth info in a JWT token in a cookie 2016-01-15 02:27:30 +01:00
Ken-Håvard Lieng
d9b63dd0ef Enable HTTP/2 2016-01-08 18:53:02 +01:00
Ken-Håvard Lieng
47dd4f51cb Refactor lets encrypt integration to support cert changes and ocsp stapling without restarting 2016-01-06 22:19:06 +01:00
Ken-Håvard Lieng
b55cb13e44 Let's Encrypt 2016-01-04 19:26:32 +01:00
Ken-Håvard Lieng
de1a2dd343 Support websocket over ssl, pass uuid in url 2015-12-29 22:23:07 +01:00
Ken-Håvard Lieng
eeb45e17c2 Name it 2015-12-11 04:35:48 +01:00
Ken-Håvard Lieng
114bf8201e Refactor websocket handler 2015-06-17 00:46:58 +02:00
Ken-Håvard Lieng
047027ddec Refactor irc handler, add tests 2015-06-16 23:20:53 +02:00
Ken-Håvard Lieng
7d17b4b30f Set GOMAXPROCS to NumCPU, drop httprouter 2015-06-07 01:18:26 +02:00
Ken-Håvard Lieng
ebdb382706 Stop creating new goroutines for irc.Connect() since it doesnt block anymore 2015-06-06 01:02:02 +02:00
Ken-Håvard Lieng
adcf12e1fa Pull IRC client out 2015-06-06 00:34:13 +02:00
Ken-Håvard Lieng
c325168a20 Reconnect and retry IRC connections 2015-06-01 05:44:30 +02:00