implement server logic
This commit is contained in:
@@ -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"
|
||||
|
@@ -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
12
config/prod.toml
Normal 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"
|
Reference in New Issue
Block a user