mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
Update config.sh, sendfile.sh files
This commit is contained in:
parent
cc3734e2f1
commit
cf1c5694ba
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ WEBSITE="http://localhost:$PORT"
|
|||
# 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 markdown package to use it. May be false or true
|
||||
# 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
|
||||
|
|
|
@ -8,7 +8,7 @@ if [[ "$FILE" == *.php ]] && [ "$(which php)" != "" ] && [ "$ENABLE_PHP" = "true
|
|||
elif [[ "$FILE" == *.md ]] && [ "$(which markdown)" != "" ] && [ "$ENABLE_MARKDOWN" = "true" ]; then
|
||||
CONTENTTYPE="text/html"
|
||||
. ./httpheaders.sh
|
||||
markdown -b "$FILES" "$FILE" >> $OUTFILE
|
||||
pandoc -f markdown_github "$FILE" >> $OUTFILE
|
||||
elif [ -f "${FILE}" ]; then
|
||||
CONTENTTYPE=$(file -b -i "$FILE")
|
||||
. ./httpheaders.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue