Skip to content

Commit

Permalink
ncp-web HTTPS only
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Aug 10, 2017
1 parent 1e98c8e commit bec9cdb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/letsencrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ configure()
sed -i "s|ServerName .*|ServerName $DOMAIN_|" $VHOSTCFG_ || \
sed -i "/DocumentRoot/aServerName $DOMAIN_" $VHOSTCFG_

/etc/letsencrypt/letsencrypt-auto -n --no-self-upgrade --apache --hsts --agree-tos -m $EMAIL_ -d $DOMAIN_
/etc/letsencrypt/letsencrypt-auto -n --no-self-upgrade --apache --hsts --agree-tos -m $EMAIL_ -d $DOMAIN_ || return 1
echo "* 1 * * 1 root /etc/letsencrypt/certbot-auto renew --quiet" > /etc/cron.d/letsencrypt-ncp

cd /var/www/nextcloud
Expand Down
11 changes: 0 additions & 11 deletions nextcloudpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@ install()
# NEXTCLOUDPI-CONFIG WEB
##########################################
cat > /etc/apache2/sites-available/ncp.conf <<'EOF'
Listen 8089
<VirtualHost _default_:8089>
DocumentRoot /var/www/ncp-web
</VirtualHost>
<Directory /var/www/ncp-web/>
Require host localhost
Require ip 127.0.0.1
Require ip 192.168
Require ip 10
</Directory>
Listen 4443
<VirtualHost _default_:4443>
DocumentRoot /var/www/ncp-web
Expand Down

0 comments on commit bec9cdb

Please sign in to comment.