Note: all the server configuration variables are inside src/configuration.rs.
Used to specify the directory in which you have stored the static HTML files.
Required: true
Depends on: None
Type: String
Used to specify the directory in which the server will store the logs. Only necessary if you set SAVE_LOGS to true.
Required: true / false
Depends on: SAVE_LOGS
Type: String
The adress which the server will use. Leave it to 127.0.0.1 for localhost. Change it to 0.0.0.0 for production.
Required: true
Depends on: None
Type: String
The port which will be used by the server. The default port for HTTP (Hyper Text Transfer Protocol) is 80 and for HTTPS (Hyper Text Transfer Protocol Secure) 443.
Required: true
Depends on: None
Type: Number
Specifies whether you want the server to save logs upon a new request.
Required: true
Depends on: None
Type: Boolean
Specifies whether you want to use multiple threads (faster) or a single thread (slower).
PRODUCTION WARNING: LOGS ARENT SAVED EVEN IF THEY ARE ENABLED WHEN MULTITHREADING IS IN USERequired: true
Depends on: None
Type: Boolean
This bash script should be run every time you edit (or create) a new static file in the media directory. It copies all the files to the destination directory (the static directory) and clears the logs.
I do not see any problem with using this web server for production as the only thing it does is serve HTML and static files.