106 Commits

Author SHA1 Message Date
ShadowNinja
ae96c3a244 Remove periodic ping
Servers are already re-pinged on update.
2023-10-16 21:45:27 -04:00
ShadowNinja
d816450164 Remove unused import 2023-10-16 21:45:27 -04:00
ShadowNinja
2bd6b95a05 Require address verification after one successful verification 2023-10-16 21:45:27 -04:00
ShadowNinja
abf34fdaef Revert ranking algorithm 2023-10-16 21:45:27 -04:00
ShadowNinja
af43809210 Update address verification message 2023-10-16 21:45:27 -04:00
ShadowNinja
8227e03440 Add requirements.txt 2023-10-16 21:45:27 -04:00
ShadowNinja
0190f19669 Make Python version requirement less stringent 2023-10-16 21:45:24 -04:00
ShadowNinja
04456558ac Reduce ping update frequency 2023-10-16 21:44:24 -04:00
ShadowNinja
6f8bee0ac2 Fix server expiry 2023-10-16 21:44:24 -04:00
ShadowNinja
7e31ac8381 Always send clients_list 2023-10-16 21:44:24 -04:00
ShadowNinja
4f57fa19d2 Change uptime to int 2023-10-16 21:44:24 -04:00
ShadowNinja
63c63739d1 Deduplicate ping packet code 2023-10-16 21:44:24 -04:00
ShadowNinja
7cd12881ed Simplify async ping future creation 2023-10-16 21:44:24 -04:00
ShadowNinja
0dbc91d9ba Fix async ping 2023-10-16 21:44:24 -04:00
ShadowNinja
756e6cdfe5 Fix editorconfig formatting 2023-10-16 21:44:24 -04:00
ShadowNinja
2441905511 Persist servers in separate database 2023-10-16 21:44:20 -04:00
sfan5
12ed8aff60 Use 'sans-serif' in font CSS
sans is a non-portable alias for sans-serif
2023-07-09 15:52:47 +02:00
Buckaroo Banzai
6fba704bb0 use max_age instead of cache_timeout (for flask > 2.0) 2023-05-05 10:36:08 +02:00
sfan5
218f8d9bc5 Fix cache control for geoip response
Storing this in public caches is not actually safe.
2022-09-20 22:49:13 +02:00
sfan5
b0fed2e9f7 Switch GeoIP backend to be able to use an up-to-date database 2022-09-20 22:23:11 +02:00
sofar
d2f09370f7 Add interface for client to lookup it's own continent (#34)
This adds `/geoip` which returns a json object with one key-value pair,
`continent` = `unknown` or one of `NA`, `SA` etc. plus a 200 exit code,
or a 500 code if things went south badly.
2022-09-20 21:53:04 +02:00
sfan5
84a40e406b Remove "guest" user penalty
Much overdue as the mobile apps that justified this are long gone
closes #50, closes #17
2021-09-05 21:06:57 +02:00
sfan5
2f4ffde916 Recalculate stats with protocol filter applied
closes #49
2021-09-05 20:47:37 +02:00
sfan5
5d5f31d295 Only apply uptime penalty on repeated restarts 2021-03-15 12:35:02 +01:00
sfan5
a9ecf55b38 Avoid unnecesary disk writes 2021-03-15 11:38:49 +01:00
sfan5
9f144f3e3c Adjust server ranking
specificially, penalize servers that support both v4 and v5
Reasoning: We, as a project, have no interest in promoting servers
that intentionally restrict themselves to the feature set of an old,
potentially buggy version.
2021-03-15 11:27:38 +01:00
sfan5
e37149a834 Improve table column sizing, template, CSS 2021-02-21 14:08:00 +01:00
luk3yx
a5bc675a6e Replace "master server" with "serverlist" in README.md (#43) 2020-12-30 16:27:11 +01:00
Tyler Schwend
578a7bc987 doc: Support use of Apache (#40) 2020-12-28 20:06:19 +01:00
sfan5
e99ecd6582 Improve behaviour of protocol filtering 2020-03-08 12:20:19 +01:00
sfan5
ddcd98a457 Highlight even table rows better 2020-02-20 20:04:40 +01:00
sfan5
56ece3ba3d Clean up template a little 2019-08-13 13:44:47 +02:00
sfan5
ba0077a4f5 Add dropdown that filters by protocol version 2019-08-13 13:21:04 +02:00
sfan5
04810a094c Improve lookup failure logging 2019-07-17 12:53:11 +02:00
sfan5
85c3048cd4 Fix handling of GeoIP lookup failure 2019-07-17 12:46:57 +02:00
Auke Kok
772fc29cb8 Detect geo of server.
Using geolite2, we attempt to detect the continent of the server
and store the 'continent code' in the serverlist. This is reasonably
broad enough to help players in the client find truly "nearby" server.

The client will have to be changed to select a continent to change
ordering or filtering.
2019-07-17 12:33:48 +02:00
sfan5
ac66259801 Less confusing status codes 2019-07-17 12:23:35 +02:00
sfan5
794807c9ff Raise JSON length limit
it's not hard to hit 5000 if you just throw in a lot of mods
2019-05-07 17:30:15 +02:00
sfan5
8aa2efd5eb Move some styles back into index.html
These should only apply on servers.minetest.net, not when
the server list is embedded into another page.
2019-02-13 13:28:32 +01:00
luk3yx
8d0c99b5d0 Add nicer CSS
• Add more whitespace around everything.
• Change the fonts.
• Change the colours/colors.
• Add a shadow around the mods/flags/etc lists.
2019-02-13 13:24:06 +01:00
sfan5
6f51e2f00f Tune server ranking (again) 2018-11-11 23:16:43 +01:00
sfan5
e7c4d2c20a Tune server ranking 2018-10-27 22:46:12 +02:00
sfan5
67d8515fd8 Move misplaced <script> tag in index.html 2018-10-27 22:16:58 +02:00
sfan5
57fb13cbb8 Use most compact JSON representation 2018-06-25 13:19:49 +02:00
sfan5
0a3d05baf5 Use portable os.replace instead of relying on POSIX behaviour 2018-06-25 12:48:23 +02:00
nOOb3167
a2b47ff52b Document serverUp protocol
serverUp uses hex spaghetti to send and receive a short sequence of packets, to see whether a server is online.
The packet format is now annotated for easier cross-reference with minetest source.
2018-06-04 16:27:08 +02:00
nOOb3167
e49da8f1b9 Compatibility fix (string field conversion) 2018-05-18 10:09:36 +02:00
nOOb3167
48020105af Schedule purging using plain python, obviating the need for APScheduler 2018-05-18 10:05:57 +02:00
nOOb3167
f43f201af5 Fix potential use-before-defined of serverList variable 2018-05-18 10:05:57 +02:00
nOOb3167
23d45c0a15 Improve use of os.path.join 2018-03-18 14:07:59 +01:00