I hope someone can help me with my setup.
I have just started with nextcloud a month ago and have just learned the basics so pls be kindful.
I have my Nextcloud allready up and running. My problem is it is running under “https://myurl.com/” but i want it to run under “https://myurl.com/SomeOtherName/” for example “https://myurl.com/nextcloud/”.
Yes i already searched for this and yes i found all the forum posts where someone with the issue fixed his or her problem.
My underlying problem, I think, is that i dont know how to stop my jwilder/nginx-proxy:alpine from changing/recreating the default.conf in my docker container in /etc/nginx/cond.d/ everytime on startup. Therefore I cant configure my proxy.
Maybe someone could give me a hint on this or maybe someone who knows dockerized nginx reverseproxy configurations could explain me how to fix this.
Thanks in advance
version: '3.5' services: proxy: image: jwilder/nginx-proxy:alpine labels: - "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true" container_name: nextcloud-proxy networks: - nextcloud_network ports: - 80:80 - 443:443 volumes: - ./proxy/conf.d:/etc/nginx/conf.d:rw - ./proxy/vhost.d:/etc/nginx/vhost.d:rw - ./proxy/html:/usr/share/nginx/html:rw - ./proxy/certs:/etc/nginx/certs:ro - /etc/localtime:/etc/localtime:ro - /var/run/docker.sock:/tmp/docker.sock:ro restart: unless-stopped letsencrypt: image: jrcs/letsencrypt-nginx-proxy-companion container_name: nextcloud-letsencrypt depends_on: - proxy networks: - nextcloud_network volumes: - ./proxy/certs:/etc/nginx/certs:rw - ./proxy/vhost.d:/etc/nginx/vhost.d:rw - ./proxy/html:/usr/share/nginx/html:rw - /etc/localtime:/etc/localtime:ro - /var/run/docker.sock:/var/run/docker.sock:ro restart: unless-stopped db: image: mariadb container_name: nextcloud-mariadb networks: - nextcloud_network volumes: - db:/var/lib/mysql - /etc/localtime:/etc/localtime:ro environment: - MYSQL_ROOT_PASSWORD= - MYSQL_PASSWORD= - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud restart: unless-stopped app: image: nextcloud:latest container_name: nextcloud-app networks: - nextcloud_network depends_on: - letsencrypt - proxy - db volumes: - nextcloud-html:/var/www/html - ./app/config:/var/www/html/config - ./app/custom_apps:/var/www/html/custom_apps - nextcloud-data:/var/www/html/data - ./app/themes:/var/www/html/themes - /etc/localtime:/etc/localtime:ro environment: - VIRTUAL_HOST=my.url - LETSENCRYPT_HOST=my.url - LETSENCRYPT_EMAILemail@example.com restart: unless-stopped volumes: nextcloud-html: external: true nextcloud-data: external: true db: networks: nextcloud_network:
As one can see i have a mariadb Nextcloud with a nginx reverse proxy and letsencrypt ssl certification combined in a virtual network. The data volumes are lying external on my 8TB Raid 5 for data loss protection.
My config.php is pretty basic just some tweaks for mail stuff and so on.