summaryrefslogtreecommitdiff
path: root/nextcloud.html
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-07-04 08:38:29 -0400
committerGitHub <noreply@github.com>2021-07-04 08:38:29 -0400
commit8c3c7526bd0068301f2888dd6beb8ce19a2d0d08 (patch)
treeebee0f2b7ea8e955efbf423e0a8f0fa24920ec46 /nextcloud.html
parent935d9d26748281437157cffc10e949382f39b9d3 (diff)
parentd3ac0351075a9febcc0c3a64ae8822f0e3907e5c (diff)
Merge pull request #62 from MattMadness/master
Fix for Nextcloud Setup Issue #59
Diffstat (limited to 'nextcloud.html')
-rw-r--r--nextcloud.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/nextcloud.html b/nextcloud.html
index 259c361..a190c3b 100644
--- a/nextcloud.html
+++ b/nextcloud.html
@@ -42,7 +42,12 @@ EXIT;</code></pre>
<p>Check for the <code>www-data</code> user by running <code>id -u www-data</code>. If a number is output from that command, then the www-data user exists. If not. add the user simply by running <code>useradd www-data</code></p>
<p>Next, we need to ensure that we have SSL certificates generated for your website. If you have not already done this, refer to <a href="certbot.html">this guide</a>. Although having SSL for your site is not required, it is highly recommended that you have it or you will risk attackers being able to steal passwords and data.</p>
<p>In <code>/etc/nginx/sites-available/</code> we need to make a new configuration for Nextcloud (example: <code>/etc/nginx/sites-available/nextcloud</code>). Create it and open it, modify, and add the following lines:</p>
- <pre><code>server {
+ <pre><code>upstream php-handler {
+ server unix:/var/run/php/php7.4-fpm.sock;
+ server 127.0.0.1:9000;
+}
+
+server {
listen 80;
listen [::]:80;
server_name <strong>yourwebsite.com</strong>;
@@ -90,8 +95,6 @@ server {
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
- pagespeed off;
-
add_header Referrer-Policy "no-referrer" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Download-Options "noopen" always;