diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2021-07-05 09:33:45 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2021-07-05 09:33:45 -0400 |
| commit | cd4da7eb4c699ee38d465d575462d45b41b506ec (patch) | |
| tree | de0fd31f02726117315c3aaebe046db4a68178ab | |
| parent | 22299f84d39c26dd661a217809ae3174ccfaf4eb (diff) | |
| parent | 8c3c7526bd0068301f2888dd6beb8ce19a2d0d08 (diff) | |
Merge branch 'master' of github.com:LukeSmithxyz/landchad
| -rw-r--r-- | nextcloud.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nextcloud.html b/nextcloud.html index 533ebb1..2ba4472 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; |
