ansuz
953c817c5b
clean up more prototype code:
...
* remove commented code
* serialize errors sent from http workers to the main process
* drop support for custom http headers set via config.js#httpHeaders
* websockets: only listen on localhost, respect websocketPort config in workers' proxy config
2022-12-20 18:03:52 +05:30
ansuz
24274e6c9b
remove some prototyping code that was overwriting values in responses to http-workers
2022-12-20 17:10:10 +05:30
ansuz
7e4518b43d
More server cleanup:
...
* make the websocket port configurable
* reorder some tasks at launch time to use more consistent logging
* relaunch http workers if they crash
* refuse to launch if httpUnsafeOrigin cannot be parsed as a URL
* fix a path issue reintroduced by a git merge
2022-12-20 16:29:38 +05:30
ansuz
d58096636a
Merge tag '5.2.0' into test-merge
2022-12-20 14:49:47 +05:30
ansuz
6f19101f42
big server changes:
...
* use the nodejs cluster module to handle http traffic with multiple threads
* listen for websocket traffic on a new port because all such logic needs to share state
* proxy websocket URLs from the cluster to the new port so everything is backwards compatible
* implement logic for http workers to make requests and stay in sync with the main process
* unrelated: define the expected nodejs version in a constant
2022-12-20 14:20:59 +05:30
yflory
600771682a
Allow edit/delete/multiple answers without a drive and fix race condition
2022-12-08 16:53:29 +01:00
ansuz
ed981f2b63
generalize recommended version code for easier updates
2022-12-07 13:09:24 +05:30
ansuz
c762353cad
interpret maxWorkers config in lib/env instead of in worker handler
2022-12-07 13:04:07 +05:30
yflory
5d350f1c45
Merge branch 'form' into form-del
2022-10-26 17:51:10 +02:00
yflory
89448115c5
Delete form own answers
2022-10-18 10:19:57 +02:00
yflory
bde6bb0032
Clean server code
2022-10-14 16:53:38 +02:00
yflory
8a3be878e8
Merge branch 'staging' into form-del
2022-10-12 17:19:22 +02:00
yflory
c3df1bb0ec
Use flag in pad metadata to allow line deletion in file
2022-10-12 17:17:58 +02:00
yflory
6a1c64fe9a
Delete your own form answers
2022-10-06 17:12:23 +02:00
ansuz
1acdb4180d
fix for bogus metadata lines wiping ownership and other parameters
2022-10-06 16:05:05 +05:30
ansuz
863ab4f380
Merge branch 'soon' into absolute-paths
2022-10-06 15:34:05 +05:30
ansuz
fede73efb1
enable admin option to opt-in to aggregate statistics
2022-09-22 16:35:20 +05:30
ansuz
333ba82970
allow admins to overwrite live data with archived data when both exist
2022-09-13 18:32:50 +05:30
ansuz
2b365694f6
fix server logic and logs messages related to quotas
2022-09-13 13:00:36 +05:30
ansuz
cf180158dc
remove temporary comments
2022-09-07 18:15:19 +05:30
ansuz
e78e57c039
unify accounts_api and quota_api config options
2022-08-30 17:23:10 +05:30
ansuz
b903e1351d
serverside component of admin metadata history
2022-08-26 18:11:59 +05:30
ansuz
ccd0b580f8
fix broken file uploads
2022-08-24 12:38:34 +05:30
ansuz
6cfce42c58
refactor admin panel and include reasons for archiving and restoring
2022-08-24 10:10:32 +05:30
ansuz
d05063a5a2
ensure that the correct form of a signing key is used
2022-08-23 16:08:57 +05:30
ansuz
31f61c7f1d
refactor admin database tab
2022-08-11 18:30:19 +05:30
ansuz
60e58e8f7a
first version of admin 'database' tab
2022-08-11 11:53:03 +05:30
ansuz
6c73e05d19
ignore an expected error
2022-07-25 16:33:05 +05:30
yflory
6ae07bb480
Allow accounts server to trigger quota updates
2022-07-05 11:48:40 +02:00
ansuz
7e0977f0d6
add missing name, description, location to public instance telemetry
2022-06-08 13:30:25 +05:30
ansuz
958b3e4376
remove references to removed pages and notes that have been addressed
2022-05-13 15:50:38 +05:30
ansuz
0be64ac958
simplify accounts configuration on dev instances
2022-05-11 13:12:12 +05:30
ansuz
071c9706af
accept both new and old data format for server info on admin panel
2022-05-10 13:11:53 +05:30
ansuz
3c679509c4
adjust INSTANCE_STATUS RPC to accommodate new data format
2022-05-06 14:33:30 +05:30
ansuz
a2731c44b0
assorted home page fixes/improvements
...
* link to home page from other static pages
* home notice
* moved to the top of the home page
* configured via server API instead of application_config.js
* WIP admin panel UI
* more debugging info for unsupported decrees
* lint compliance probably
2022-05-06 13:55:00 +05:30
ansuz
6a708a7df0
fix inability to set instance name
2022-05-03 18:48:40 +05:30
ansuz
916c0dd322
Merge branch 'sandpaper-static' into 4.15-candidate
2022-05-03 18:31:56 +05:30
David Benqué
97832340cf
Remove Terms, What is, and Maintenance pages
2022-04-25 16:04:26 +01:00
ansuz
b014c4dbf1
fileHost is undefined for most use cases
2022-04-04 16:32:42 +05:30
ansuz
404b89eb28
update recommended settings for embedding to permit element desktop
2022-04-04 12:31:40 +05:30
ansuz
b4323b2c40
fix incorrect frame-ancestors and update test
2022-04-01 13:15:06 +05:30
ansuz
dae6d7fc1e
add hints for translation linting and remove notes
2022-03-25 16:53:10 +05:30
ansuz
e6c51e3dff
remove hardcoded translations and invert remote embedding logic
2022-03-24 12:43:16 +05:30
ansuz
386827d825
handle 500 errors
2022-03-22 16:41:42 +05:30
ansuz
af10547dca
warn if node is not launched with 'NODE_ENV=production'
2022-03-22 15:40:43 +05:30
ansuz
f34a60665f
check that the server is running at least NodeJS v16.14.2
2022-03-22 14:27:07 +05:30
ansuz
d405a5f086
disable remote embedding by default
2022-03-15 15:29:18 +05:30
ansuz
1051fc4da7
fix undefined safe origin
2022-03-14 17:43:51 +05:30
ansuz
a54a0af604
more tests on checkup page
2022-03-14 17:09:22 +05:30
ansuz
e38e08fb6e
Merge branch 'soon' into block-embeds
2022-03-14 12:52:55 +05:30