Corretti commenti, cfg thttpd

This commit is contained in:
giuliof 2021-03-24 22:30:05 +01:00
parent e3d1b88f93
commit ee8339aa2c
3 changed files with 7 additions and 4 deletions

View File

@ -6,8 +6,7 @@ RUN apk add thttpd
RUN apk add python
RUN apk add py-pip
COPY thttpd.conf /srv/thttpd.conf
CMD install.sh
# TODO: integrare in install?
# TODO: opzioni per cgi
ENTRYPOINT ["thttpd -D -d /srv/cgi"]
ENTRYPOINT ["thttpd" "-C" "/srv/thttpd.conf"]

View File

@ -25,11 +25,12 @@ for url in ${REPO[*]}; do
pushd $PRJ_DIR
# Link template to the actual configuration
# Linka la configurazione nel sottovolume
ln -s $CFG_DIR/$PRJ_DIR.conf.ini conf/conf.custom.ini
test $? -eq 0 || die
pip install -r requirements.txt
test $? -eq 0 || die
popd
done

3
cgi-python/thttpd.conf Normal file
View File

@ -0,0 +1,3 @@
dir=/srv/www
charset=utf-8
cgipat=**.cgi