mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
32 lines
883 B
C
32 lines
883 B
C
struct databuffer SUUSER;
|
|
struct databuffer FILES;
|
|
struct databuffer HTMLTITLE;
|
|
struct databuffer OUTFILE;
|
|
uint PORT;
|
|
bool ENABLE_PHP;
|
|
bool ENABLE_MARKDOWN;
|
|
struct databuffer ERROR404;
|
|
struct databuffer ERROR403;
|
|
|
|
|
|
|
|
void config() {
|
|
// The web server is running under this user (requires to start the socat script as root!). This option may be empty
|
|
SUUSER = auto_db("");
|
|
|
|
// Here is the webroot (homefolder for the website)
|
|
FILES = auto_db("/var/www/html/");
|
|
|
|
// This port will used for listening
|
|
PORT = 8888;
|
|
|
|
// Should PHP be enabled? You need to install php-cli package to use it. May be false or true
|
|
ENABLE_PHP = false;
|
|
|
|
// Should Markdown be enabled? You need to install pandoc package to use it. May be false or true
|
|
ENABLE_MARKDOWN = false;
|
|
|
|
// Error code pages, they need to be HTML documents
|
|
ERROR404 = auto_db("/404.html");
|
|
ERROR403 = auto_db("/403.html");
|
|
}
|