implement server logic

This commit is contained in:
2025-05-02 14:10:44 +02:00
parent e90dfa0b0b
commit a2a6933058
9 changed files with 117 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ max_question_body_size = 25
memory_limit = 50
[maintenance]
interval = 60
interval = 10
[push]
endpoint = "[::1]:8081"
endpoint = "http://[::1]:8081/push"

View File

@@ -1,3 +1,7 @@
dst/dev.toml: config/dev.toml
@mkdir -p $(@D)
ln -f $< $@
dst/prod.toml: config/prod.toml
@mkdir -p $(@D)
ln -f $< $@

12
config/prod.toml Normal file
View File

@@ -0,0 +1,12 @@
[server]
bind_to = "[::1]:8080"
max_question_body_size = 2048
[performance]
memory_limit = 536870912
[maintenance]
interval = 60
[push]
endpoint = "http://[::1]:9091/api.php?cmd=newmodmessages"