bashclub / zamba-lxc-toolbox

Zamba LXC Toolbox a script collection to setup LXC containers on Proxmox + ZFS. Zamba is the fusion of ZFS and Samba (standalone, active directory dc or active directory member), preconfigured to access ZFS snapshots by "Previous Versions" to easily recover encrypted by ransomware files, accidently deleted files or just to revert changes.
https://aow.de/
GNU General Public License v3.0
303 stars 66 forks source link

Nextcloud https #81

Closed cryd-s closed 1 year ago

cryd-s commented 1 year ago

Hi there,

i have installed the nextcloud but now i have big trouble to switch it to https. Can someone tell me how to do this? Editing the config.php doesnt help.

Why i want to do? Cause i have a non valid certificate in my network - this makes trouble with my internal dns rewrite (192.168.178.151 to cloud.xxxx.de)

cryd-s commented 1 year ago

image

cryd-s commented 1 year ago

image want to do this cause the app should sync about the url but in my network not through the www image

DerFossiBaer commented 1 year ago

The nextcloud container in the lxc toolbox is designed to work behind a proxy like nginx proxy or haproxy. If you want to install the nextcloud without proxy in front then the hole configuration for letsencrypt must be added.

cryd-s commented 1 year ago

Ok can u tell me how to do this?

thorstenspille commented 1 year ago

The most simple way to install a signed tls certificate is to install certbot or acme-sh onto the nextcloud container, generate a letsencrypt certificate and replace the certificate and key path in the nginx config file: /etc/nginx/conf.d/nextcloud.conf Line 155 - 156

- ssl_certificate /etc/ssl/certs/nextcloud.crt;
- ssl_certificate_key /etc/ssl/private/nextcloud.key;
+ ssl_certificate /etc/letsencrypt/live/cloud.yourdomain.tld/fullchain.pem;
+ ssl_certificate_key /etc/letsencrypt/live/cloud.yourdomain.tld/privkey.pem;
cryd-s commented 1 year ago

Ihr seids aus Deutschland wie ich in dem einen YT Video gesehen hab. Gibts vllt die Möglichkeit mir mal per Teams oder Discord auf die Sprünge zu helfen. Bin recht neu in der ganzen Proxmox Welt und würde gern diese Nextcloud installieren und sauber bei mir hier betreiben.

Meine Voraussetzungen:

Normales Fritzbox Netzwerk Adguard für DNS Umschreibung Proxmox

thorstenspille commented 1 year ago

@cryd-s du hast eine PN bei Discord.