Commit f2ab4eb7 authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

nextcloud: Fix configuration

parent 9201d5e7
......@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=nextcloud
PKG_VERSION:=12.0.1
PKG_RELEASE:=0
PKG_RELEASE:=1
PKG_SOURCE_URL:=https://download.nextcloud.com/server/releases/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
......@@ -27,7 +27,7 @@ define Package/nextcloud
SECTION:=net
CATEGORY:=Network
TITLE:=Nextcloud server
DEPENDS=+php7-mod-opcache +php7-fpm +php7-cli +sudo +php7-mod-ctype +php7-mod-fileinfo +php7-mod-xmlreader +php7-mod-openssl +php7-mod-hash +php7-mod-gd +php7-mod-xml +php7-mod-xmlwriter +php7-mod-json +php7-mod-mbstring +php7-mod-pcntl +php7-mod-opcache +php7-mod-session +php7-mod-simplexml +php7-mod-iconv +php7-mod-curl +php7-mod-zip +php7-mod-dom +coreutils-stat +php7
DEPENDS=+php7-mod-opcache +php7-fpm +php7-cli +sudo +php7-mod-ctype +php7-mod-fileinfo +php7-mod-xmlreader +php7-mod-openssl +php7-mod-hash +php7-mod-gd +php7-mod-xml +php7-mod-xmlwriter +php7-mod-json +php7-mod-mbstring +php7-mod-pcntl +php7-mod-opcache +php7-mod-session +php7-mod-simplexml +php7-mod-iconv +php7-mod-curl +php7-mod-zip +php7-mod-dom +coreutils-stat +php7 lighttpd-mod-access
endef
define Package/nextcloud-install
......
......@@ -70,7 +70,7 @@ if [ -z "$IP" ]; then
echo "Autodetection of your router IP failed, what is your routers IP address?"
read IP
fi
sudo -u nobody php-cli ./occ config:system:set --value 192.168.4.1 trusted_domains 1
sudo -u nobody php-cli ./occ config:system:set --value $IP trusted_domains 1
/etc/init.d/php7-fpm restart
/etc/init.d/lighttpd restart
......
alias.url += ( "/nextcloud" => "/srv/www/nextcloud" )
$HTTP["url"] =~ "^/nextcloud" {
# Add 'X-Frame-Options' header, making sure it the website is not embedded in a frame or iframe.
# This avoids clickjacking, and might be helpfull for HTTPS websites
# As frames are not used nowadays, this should be safe to enable at least SAMEORIGIN
# Other option might be DENY or ALLOW-FROM. DENY is not used as frame is used in some old LuCI modules
setenv.add-response-header += ( "X-Frame-Options" => "SAMEORIGIN")
}
$HTTP["url"] =~ "^/nextcloud/(build|tests|config|lib|3rdparty|templates|data)" {
url.access-deny = ("")
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment