summaryrefslogtreecommitdiff
path: root/config.example
diff options
context:
space:
mode:
authorSoikk2025-12-06 20:16:37 +0100
committerSoikk2025-12-06 20:19:18 +0100
commita55c8ef63bb4941fdee5ddf00ed564e246c8a939 (patch)
treeeed8f07ee9c2deb5d82d9dac130ef228a0b7b705 /config.example
parent534303b80b5304a2b29d456d6b5c7a6ac1daaf1c (diff)
downloadsoikk-server-a55c8ef63bb4941fdee5ddf00ed564e246c8a939.tar.xz
soikk-server-a55c8ef63bb4941fdee5ddf00ed564e246c8a939.tar.zst
Reworked worker architecture
- replaced the central socket-multiple accepts architecture thanks to SO_REUSEPORT - removed master/worker distinctions for server and config - fixed bug with rewrites not being read properly by multiple workers because of null characters
Diffstat (limited to 'config.example')
-rw-r--r--config.example99
1 files changed, 48 insertions, 51 deletions
diff --git a/config.example b/config.example
index d8a946b..06a9c26 100644
--- a/config.example
+++ b/config.example
@@ -12,60 +12,57 @@ logs {
# ERROR stderr 144
}
-# config specific to the worker
-worker {
- root /home/user/server/ # where the server will look for files, basically files prefix
- bundle /ca/bundle/location # location of ca bundle
- cert ssl/cert.pem # location of certificate
- key ssl/key.pem #location of private key
- http # turns https off
- # https # turns https on
- ipv4 # ipv4 enabled
- ipv6 # ipv6 enabled
- rewrites {
- / test/monch.gif
- /media/* localc/media/$1
- /* test/$1
- }
- # rewrites rewrites.txt # file from where to read rewrites
- types mime.types # file from where to read types
- types {
- # reading types from config directly
- # description extension
- type/ext ext
- }
+root /home/user/server/ # where the server will look for files, basically files prefix
+bundle /ca/bundle/location # location of ca bundle
+cert ssl/cert.pem # location of certificate
+key ssl/key.pem #location of private key
+http # turns https off
+# https # turns https on
+ipv4 # ipv4 enabled
+ipv6 # ipv6 enabled
+rewrites {
+ / test/monch.gif
+ /media/* localc/media/$1
+ /* test/$1
+}
+# rewrites rewrites.txt # file from where to read rewrites
+types mime.types # file from where to read types
+types {
+ # reading types from config directly
+ # description extension
+ type/ext ext
+}
- # HTTP method rules
- # not implemented yet
- # GET {
- # # request document to server code to server
- # / homepage.html 200
- # /help help.html 200
- # /* 404.html 404
- # }
+# HTTP method rules
+# not implemented yet
+# GET {
+# # request document to server code to server
+# / homepage.html 200
+# /help help.html 200
+# /* 404.html 404
+# }
- # same but for different method
- # POST {
- # # etc
- # }
+# same but for different method
+# POST {
+# # etc
+# }
- # custom methods
- # * {
- # /* / 501
- # }
+# custom methods
+# * {
+# /* / 501
+# }
- # HTTP response codes
- # codes {
- # # code code text
- # 200 "OK"
- # 404 "Not Found"
- # 418 "I'm a teapot"
- # 501 "Not implemented"
- # # custom codes
- # 711 "Double gulp cup"
- # }
+# HTTP response codes
+# codes {
+# # code code text
+# 200 "OK"
+# 404 "Not Found"
+# 418 "I'm a teapot"
+# 501 "Not implemented"
+# # custom codes
+# 711 "Double gulp cup"
+# }
- # same but can also be gotten from file
- # codes codes.txt
-}
+# same but can also be gotten from file
+# codes codes.txt