Commit Graph

36 Commits

Author SHA1 Message Date
5b32b70bcd Finish relicensing to GNU AGPL v3.0
I decided to switch to the AGPL because I plan to use this to run a SaaS
business, and I don't want a competitor to create a version with
proprietary improvements.
2021-07-20 13:16:17 -07:00
3ac2293a7d
Switch to AGPL v3
A strong copyleft license is better than MIT for my intended use.
2021-07-20 12:47:15 -07:00
d82a9c630a Rearrange server files 2021-07-20 12:43:12 -07:00
e75770bcfa Add Thanks section 2021-07-19 13:10:22 -07:00
8ea09771e8
Big refactor (#20)
* First step of server redesign

Only thing left is to re-add disconnect handling

* Convert client to use img

Removing the tiling feature allowed me to switch the client to use img
instead of canvas.

* Rename "canvas" to "img"

"canvas" isn't a good variable name for an <img> element

* Handle disconnects (again)

I had removed disconnect handling when I started the partial rewrite.
This commit re-adds it.

* Remove obsolete code

* Change dependency to websocket-server in requirements.txt

* Fix Chrome click bug

This should fix the Chrome click bug.
2021-07-19 12:09:42 -07:00
ebc9831c93 Update server/README.md 2021-07-15 18:53:48 -07:00
c3bfc8c354 Document custom backend support 2021-07-10 18:59:45 -07:00
92337cb000 Add SaaS backend
This backend works just like the X11 backend, except it starts HamClock
on its own rather than relying on an existing instance. As the name
implies, it is intended for SaaS environments where multiple HamClocks
may be running on a single machine, and running unused instances would
be a significant waste of resources.
2021-07-10 18:51:15 -07:00
98bcce60e3 Add port config 2021-07-10 14:50:31 -07:00
9dc8030d86 Stability improvements 2021-07-10 14:28:36 -07:00
1fc8aa4505 Add connect() and disconnect() to backend API 2021-07-09 18:47:29 -07:00
185e515c66 Add documentation
Closes #6
2021-07-05 12:55:41 -07:00
ff3e3dcd0f Document the server
Related to #6
2021-07-05 12:11:32 -07:00
87008043db Add version negotiation
*Actually* closes #12.
2021-07-05 11:39:56 -07:00
a5bae2c0e2 Add better authentication
Closes #5
2021-07-05 11:21:10 -07:00
44375b4b11 Replace imgage with image
Closes #18
2021-06-22 14:02:16 -07:00
94fa2bfa35 Fix #12
This is a fix for #17. Eventually I need to rewrite it again because
this isn't very well-written.
2021-06-22 14:00:37 -07:00
549cfb10f9 Rearrange imports
Just sorting imports
2021-06-20 16:44:03 -07:00
4d5ce06eb6
Configuration file (#15)
* Add support for config file

Closes #1

* Support changing config path

The path to the config file is accepted as an argument

* Remove old code

Remove the code for the old backend selection method
2021-06-20 16:37:04 -07:00
67136506a4 Improve backend selection system
Use a string instead of changing the import line

Related to #1
2021-06-20 15:49:36 -07:00
d18cf3e674 Rearrange functions
This just made the code neater; no functional changes.
2021-06-20 15:39:21 -07:00
1624ee8996
Use Tornado (#14)
This commit converts the server to use Tornado. Unfortunately, I had to
convert part of the code to async, but I avoided it as much as possible.

Closes #7
2021-06-20 15:34:04 -07:00
8155adb853 Use Argon2
Related to (but does not close) #5
2021-06-19 13:55:13 -07:00
a6c78674b8 Replace os.system with subprocess
Closes #2
2021-06-19 13:17:02 -07:00
be30709a3f add lang=en and charset=UTF-8 to client HTML 2021-06-17 19:58:16 -07:00
87344df53e
Merge pull request #4 from kj7rrv/less-in-backend
Move parts of backends into new imgproc.py
2021-06-17 19:54:38 -07:00
a67f765bd2 Move parts of backends into new imgproc.py
A lot of code was unnecesarily shared between the backends. This places
much of that code in a new file, `imgproc.py`
2021-06-17 19:50:16 -07:00
d96f6efc74 The Client object doesn't use the Queue anymore 2021-06-17 15:46:02 -07:00
6061c80cbe Rearrange client files 2021-06-17 15:04:51 -07:00
d57905c731 Rearrange files again, and fix more bugs 2021-06-17 14:52:23 -07:00
b0329fd8ce Several improvements and rearranged files 2021-06-17 14:33:40 -07:00
d88766ddc0 . 2021-06-15 14:24:32 -07:00
5143593d4c . 2021-06-15 14:21:59 -07:00
f2efc515cd
Create README.md 2021-06-15 12:57:03 -07:00
daaeab99aa
Create LICENSE 2021-06-15 12:56:32 -07:00
133eb26a0b Initial commit 2021-06-15 12:50:51 -07:00