summaryrefslogtreecommitdiff
path: root/docs/cca.scfg.example (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: Overhaul structure again and embed everythingRunxi Yu11 days1-14/+0
| | | | | | | | - Remove sub-Makefiles; recursive make is annoying - Just use one top-level Makefile that builds everything - Embed templates and minified static resources into the binary - Embed all compiled documentation into the binary and serve - Embed all source into the binary and serve
* {config,ws}.go, cca.scfg.example: Add perf.course_update_intervalRunxi Yu12 days1-0/+4
| | | | | | This causes a drastic increase in performance. References: https://todo.sr.ht/~runxiyu/cca/7
* {config,ws}.go, cca.scfg.example: Remove chanPool/SendQRunxi Yu12 days1-4/+0
|
* {config,main}.go, cca.scfg.example: Settable static pathRunxi Yu12 days1-6/+3
| | | | | | | | | Because of the poor performance of using NGINX as a reverse proxy, I've added native TLS in commit 4a1a7af76408e956ebc343bf28960fdd00c00c58. Serving static files was already supported, but it was expected that people use a static web server to do so, so we didn't support a configurable static path. Now since reverse proxy setups are discouraged, it makes more sense to be better at serving static files.
* {config,main}.go, cca.scfg.example: Support TLSRunxi Yu12 days1-0/+16
|
* main.go, cca.scfg.example: Remove FastCGI supportRunxi Yu12 days1-5/+3
| | | | | | I would love to serve FastCGI but it is a huge pain to get WebSocket working, at least with NGINX. I don't think OpenBSD httpd would be better at this either.
* cca.scfg.example: Listen on 127.0.0.1:5555 only by defaultRunxi Yu13 days1-3/+3
| | | | | | I would have used IPv6, i.e. [::1]:5555, but our school network only has IPv4 and it'd be easier to keep everything on the same protocol, though this probably wouldn't matter for standard reverse proxy setups.
* {config,ws}.go, cca.scfg.example: Allow same-user fake authRunxi Yu13 days1-5/+0
| | | | This is useful for testing whether connection collisions work well.
* {config,ws}.go, cca.scfg.example: Add fake auth supportRunxi Yu2024-10-021-0/+5
| | | | | Fake authentication is useful when benchmarking the server with an external program without going insane with the OpenID Connect forms.
* {config,index}.go, cca.scfg.example, style.css, *.html: Link to sourceRunxi Yu2024-09-301-0/+4
|
* auth.go, config.go, cca.scfg.example: Issue expiring cookiesRunxi Yu2024-09-301-0/+3
|
* ws.go, config.go, config.scfg.example: Attempt to fix deadlockRunxi Yu2024-09-291-0/+4
| | | | | | | When propagate tries to propagate a message to a connection that actually called propagate, it deadlocks because the it tries to send to that connection's send channel in the same goroutine. This is an attempt at a fix.
* courses.go, etc: Make courses a map instead of a sliceRunxi Yu2024-09-261-4/+0
| | | | | We need to refer to courses by their ID, and a map makes significantly more sense than a slice.
* *.go, cca.scfg.example: Expose performance optionsRunxi Yu2024-09-261-0/+20
|
* cca.scfg.example -> docs/Runxi Yu2024-09-241-0/+65