From 3abcc43f1e638608b4b88bbb0ad7881d74940f8d Mon Sep 17 00:00:00 2001 From: Soikk Date: Sat, 22 Nov 2025 16:42:08 +0100 Subject: 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 --- config.example | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'config.example') 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 -- cgit v1.2.3