Hi Guys,
Iāve setup the Nextcloud VM using the scrip provided at: github.com/nextcloud/vm
I have an NGINX reversed proxy working to handle my SSL and load off for al my stuff.
Now i have the configuration working, but i need to remove the /nextcloud in the url.
In my config.php:
āoverwrite.cli.urlā => āhttps://cloud.mydomain.com/ā,
My NGINX config:
##########################################
cloud.mydomain.com
##########################################
server {
# SSL configuration
#listen 80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
include /etc/nginx/snippets/strong-ssl.conf;
server_name cloud.mydomain.com;
ssl_certificate /etc/letsencrypt/live/cloud.mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/cloud.mydomain.com/privkey.pem;
# Root location
root /var/www/html;
# Let's Encrypt Webroot plugin location -- allow access
location ^~ /.well-known/acme-challenge/ {
auth_basic off;
autoindex on;
}
# Disable maximum file size
client_max_body_size 0;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
#websocket configuration
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Authorization "";
proxy_read_timeout 86400;
# Fix the ^ ^ It appears that your reverse proxy set up is broken" error.
proxy_pass http://192.168.1.185;
}
}
When i enter the URL https://cloud.mydomain.com i ge the main status page of the VM, with the forward URLS for webmin, nextcloud etcā¦
How would i configure it in the way taht i go to cloud.mydomain.com en get to:
https://cloud.mydomain.com/index.php/login
in stead of:
https://cloud.mydomain.com/nextcloud/index.php/login
I tried to change the config php and the nginx config to http://192.168.1.185/nextcloud and āoverwrite.cli.urlā => āhttps://cloud.mydomain.com/nextcloudā, and any other combination. But i canāt seem to get it to work propperly.
Please helpā¦