wiki onion site server
This commit is contained in:
parent
b54314d4b0
commit
7fed97decf
|
@ -7842,6 +7842,8 @@ function install_wiki {
|
|||
echo 'webm video/webm' >> /etc/dokuwiki/mime.conf
|
||||
fi
|
||||
|
||||
WIKI_ONION_HOSTNAME=$(add_onion_service wiki 80 ${WIKI_ONION_PORT})
|
||||
|
||||
if [[ $ONION_ONLY == "no" ]]; then
|
||||
echo 'server {' > /etc/nginx/sites-available/$WIKI_DOMAIN_NAME
|
||||
echo ' listen 80;' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME
|
||||
|
@ -7999,7 +8001,7 @@ function install_wiki {
|
|||
echo 'server {' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME
|
||||
echo " listen 127.0.0.1:${WIKI_ONION_PORT} default_server;" >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME
|
||||
echo " root /var/www/$WIKI_DOMAIN_NAME/htdocs;" >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME
|
||||
echo " server_name $WIKI_DOMAIN_NAME;" >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME
|
||||
echo " server_name $WIKI_ONION_HOSTNAME;" >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME
|
||||
echo ' access_log off;' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME
|
||||
echo " error_log /var/log/nginx/${WIKI_DOMAIN_NAME}_error_ssl.log $WEBSERVER_LOG_LEVEL;" >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME
|
||||
echo ' index index.php;' >> /etc/nginx/sites-available/$WIKI_DOMAIN_NAME
|
||||
|
@ -8086,8 +8088,6 @@ function install_wiki {
|
|||
|
||||
nginx_ensite $WIKI_DOMAIN_NAME
|
||||
|
||||
WIKI_ONION_HOSTNAME=$(add_onion_service wiki 80 ${WIKI_ONION_PORT})
|
||||
|
||||
systemctl restart php5-fpm
|
||||
systemctl restart nginx
|
||||
|
||||
|
|
Loading…
Reference in New Issue