1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00
simpsh-httpd/config.sh
2020-08-04 19:44:49 +02:00

23 lines
725 B
Bash
Executable file

#! /bin/bash
# The web server is running under this user (requires to start the socat script as root!). This option may be empty
SUUSER=""
# Here is the webroot (homefolder for the website)
FILES="/var/www/html/"
# The finished Document will saved here. ${OUTFILEID} must be included!
OUTFILE="/tmp/simpsh-html.${OUTFILEID}.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="${FILES}/404.html"
ERROR403="${FILES}/403.html"