kemonine
/
lollipopcloud
Archived
1
0
Fork 0

Update NextCloud docs to match latest linuxserver.io containers

This commit is contained in:
KemoNine 2019-01-18 13:37:42 -05:00
parent 673b5b66cf
commit 710bf7f52d
No known key found for this signature in database
GPG Key ID: 9D79FBF661EC6779
1 changed files with 8 additions and 14 deletions

View File

@ -19,7 +19,7 @@ Setup a generic script that'll auto update NextCloud, build a container and laun
``` bash ``` bash
mkdir /var/nextcloud mkdir -p /var/nextcloud/data /var/nextcloud/config
chown -R www-data: /var/nextcloud chown -R www-data: /var/nextcloud
cat > /scratch/docker/nextcloud.sh <<EOF cat > /scratch/docker/nextcloud.sh <<EOF
@ -54,7 +54,8 @@ docker run \\
--ip 172.30.7.7 \\ --ip 172.30.7.7 \\
-e TZ=UTC \\ -e TZ=UTC \\
-e DEBUG=1 \\ -e DEBUG=1 \\
-v /var/nextcloud:/var/www/html \\ -v /var/nextcloud/data:/data \\
-v /var/nextcloud/config:/config \\
registry.lollipopcloud.solutions/\$ARCH/nextcloud registry.lollipopcloud.solutions/\$ARCH/nextcloud
EOF EOF
@ -100,19 +101,10 @@ nextcloud.domain.tld {
} }
log /var/log/caddy/nextcloud.log log /var/log/caddy/nextcloud.log
proxy / 172.30.7.7:80 { proxy / https://172.30.7.7 {
transparent transparent
} websocket
header / { insecure-skip_verify
# Enable HTTP Strict Transport Security (HSTS) to force clients to always
# connect via HTTPS (do not use if only testing)
Strict-Transport-Security "max-age=15552000;"
# Enable cross-site filter (XSS) and tell browser to block detected attacks
X-XSS-Protection "1; mode=block"
# Prevent some browsers from MIME-sniffing a response away from the declared Content-Type
X-Content-Type-Options "nosniff"
# Disallow the site to be rendered within a frame (clickjacking protection)
X-Frame-Options "DENY"
} }
} }
EOF EOF
@ -123,6 +115,8 @@ EOF
- Navigate to ```http://nextcloud-insecure.domain.tld``` - Navigate to ```http://nextcloud-insecure.domain.tld```
- Follow on-screen prompts for finalizing the NextCloud setup - Follow on-screen prompts for finalizing the NextCloud setup
- Use 172.30.12.12 as postgres IP if using postgres
- If the gateway times out watch htop for postgres setup to finish then reload the page.
- Login as Admin - Login as Admin
## Post Install ## Post Install