NextCloud Automated Installation
-
@scottalanmiller Do you plan to include adding LE as part of this install?
Or do we just follow @JaredBusch guide & add LE. -
@fateknollogee said in NextCloud Automated Installation:
@scottalanmiller Do you plan to include adding LE as part of this install?
Or do we just follow @JaredBusch guide & add LE.I'm torn, because it requires a lot more info and setup to do that that often someone would not want. If they were using a reverse proxy, for instance, it would not go here.
-
@scottalanmiller said in NextCloud Automated Installation:
@fateknollogee said in NextCloud Automated Installation:
@scottalanmiller Do you plan to include adding LE as part of this install?
Or do we just follow @JaredBusch guide & add LE.I'm torn, because it requires a lot more info and setup to do that that often someone would not want. If they were using a reverse proxy, for instance, it would not go here.
So make a reserve proxy script
-
@scottalanmiller Isn't LE something that all NC Vultr installs would want to have?
-
@fateknollogee said in NextCloud Automated Installation:
@scottalanmiller Isn't LE something that all NC Vultr installs would want to have?
No, most would be behind a proxy. Mine is, for example.
-
@aaronstuder said in NextCloud Automated Installation:
@scottalanmiller said in NextCloud Automated Installation:
@fateknollogee said in NextCloud Automated Installation:
@scottalanmiller Do you plan to include adding LE as part of this install?
Or do we just follow @JaredBusch guide & add LE.I'm torn, because it requires a lot more info and setup to do that that often someone would not want. If they were using a reverse proxy, for instance, it would not go here.
So make a reserve proxy script
That might make sense, lol.
-
CentOS 7:
I used https://github.com/onbrella/app-installers/tree/master/nextcloud to perform a test installation last month. The script seemed to be secure enough.
I had to change the nextcloud-12-generic-storage-nginx.sh script to use SELinux and something else that I don't remember but it worked very well ; LetsEncrypt included.
The only thing I wasn't able to do is to remove /nextcloud from the URL; I will revisit the script later with NC 13 -
@dave_c said in NextCloud Automated Installation:
The only thing I wasn't able to do is to remove /nextcloud from the URL; I will revisit the script later with NC 13
That is a multi-step process. I have documented it in my NC 11 guide here: https://mangolassi.it/post/279323
-
@jaredbusch
If I remember, your steps are for Apache; I was using nginx
**Edit: The scripts I posted suport Apache/nginx/minio -
@dave_c said in NextCloud Automated Installation:
@jaredbusch
If I remember, your steps are for Apache; I was using nginx
**Edit: The scripts I posted suport Apache/nginx/minioI have never tried it with Nginx, so yeah.
But the removal of the /nextcloud bit is simply a change in the default webroot in Apache. So update that in Nginx. does that not resovle it?
-
@jaredbusch
No. It didn't work. I believe that I have to update the rules for PHP-FPM in nginx conf
Anyway, I will try again this week as I need to set up a NC server for production. I may use Apache; I haven't decided -
@dave_c said in NextCloud Automated Installation:
@jaredbusch
If I remember, your steps are for Apache; I was using nginx
**Edit: The scripts I posted suport Apache/nginx/minioIt be something like this:
#Before changing root location server { location / { root /var/www/html/; } #After changing root location server { location / { root /var/www/html/nextcloud/; }
-
@dave_c said in NextCloud Automated Installation:
@jaredbusch
No. It didn't work. I believe that I have to update the rules for PHP-FPM in nginx conf
Anyway, I will try again this week as I need to set up a NC server for production. I may use Apache; I haven't decidedOdd. Sadly, not something I hgave time to test out right now. This week is going to be busy with travel and new clients meetings.
-
@black3dynamite said in NextCloud Automated Installation:
@dave_c said in NextCloud Automated Installation:
@jaredbusch
If I remember, your steps are for Apache; I was using nginx
**Edit: The scripts I posted suport Apache/nginx/minioIt be something like this:
#Before changing root location server { location / { root /var/www/html/; } #After changing root location server { location / { root /var/www/html/nextcloud/; }
And then update the NC
config.php
. -
@jaredbusch @black3dynamite
Perhaps I didn't update config.php!
I will check later, thank you -
Is it possible to insert the hostname into the trusted domains array in the NC config.php file with the script?
-
@bnrstnr said in NextCloud Automated Installation:
Is it possible to insert the hostname into the trusted domains array in the NC config.php file with the script?
Yes, but @scottalanmiller did not account for that.
-
@bnrstnr Also, why would you want the hostname in there? It should be pretty rare that you use the hostname in a browser.
-
@jaredbusch I thought that was the entire purpose of the hostname? I always set my hostname as the FQDN of whatever the server is... nextcloud.example.net seems like a perfect hostname for a nextcloud server, no?
-
@bnrstnr said in NextCloud Automated Installation:
@jaredbusch I thought that was the entire purpose of the hostname? I always set my hostname as the FQDN of whatever the server is... nextcloud.example.net seems like a perfect hostname for a nextcloud server, no?
No that is not the purpose of a hostname.
So you meant put the FQDN in the trusted domain.
Pull request made to do that.
https://gitlab.com/scottalanmiller/nextcloud_fedora_installer/merge_requests/1If someone has time to test my pull request, that would be great.
source <(curl -s https://gitlab.com/sorvani/nextcloud_fedora_installer/raw/master/nextcloud_fedora.sh)