summaryrefslogtreecommitdiff
path: root/config.example
diff options
context:
space:
mode:
authorSoikk2025-11-22 16:42:08 +0100
committerSoikk2025-11-22 16:42:08 +0100
commit3abcc43f1e638608b4b88bbb0ad7881d74940f8d (patch)
treed5b5e2bf93ff0bbcf3c3d860c2266516e91492c4 /config.example
parentc2e397b6ee390d06f1af8921a514fdcf90e3f2fa (diff)
downloadsoikk-server-3abcc43f1e638608b4b88bbb0ad7881d74940f8d.tar.xz
soikk-server-3abcc43f1e638608b4b88bbb0ad7881d74940f8d.tar.zst
Rewrites and IPC rework
- Moved functionality to temporary server directory - Separated rewrites - Moved IPC back to signals - Added get_key() in config - Reworked receive_request() - Improved error handling
Diffstat (limited to 'config.example')
-rw-r--r--config.example16
1 files changed, 11 insertions, 5 deletions
diff --git a/config.example b/config.example
index 542dfe9..d8a946b 100644
--- a/config.example
+++ b/config.example
@@ -1,7 +1,7 @@
# lines that start with # are skipped
name website.com # name of the server. the # isnt really needed here as the config reader skips to the next line once it reads the needed value
-port 443 # port the server will be running on
-backlog 15 # backlog for the socket
+port 80 # port the server will be running on
+backlog 15 # backlog for the socket
logs {
# adds logging (for all processes) to specified files, and can turn logging to stderr off (0) or on (not 0)
# log level log file read mode
@@ -16,12 +16,18 @@ logs {
worker {
root /home/user/server/ # where the server will look for files, basically files prefix
bundle /ca/bundle/location # location of ca bundle
- cert /certificate/location # location of certificate
- key /key/location #location of private key
+ cert ssl/cert.pem # location of certificate
+ key ssl/key.pem #location of private key
http # turns https off
- https # turns https on
+ # 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