- Details
- Written by: Super User
- Category: Proxmox
- Hits: 10
When Nextcloud is installed via Proxmox helper script, and you restore a snapshot and you cannot anymore login, then you need to execute this commands:
mkdir -p /var/tmp/nextcloud
chown -R nextcloud /var/tmp/nextcloud
chmod -R 700 /var/tmp/nextcloud
The tmp folder was not in the backup, so there is no tmp folder after restoring.
- Details
- Written by: Super User
- Category: Proxmox
- Hits: 14
Because is very hard to find such instruction, so i made one.
This instruction is for the alpine nextcloud server on proxmox hypervisor.
Only to do, if you know what you do!!
First:
#for certbot
apk add --update python3 py3-pip
#install certbot
apk add certbot
#install nginx plugin for certbot
apk add certbot certbot-nginx
#create certificate
certbot --nginx
#should tell you that you dont need...
certbot renew
My problem was certbot cant change nginx locations of certificate files, so i need to do it manualy...
Change the location in:
etc/nginx/nginx.conf
The next 2 lines are to change, yourdomain.com schould your domain!
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
Then:
service nginx restart
Now schould work.
There are 2 ways for automatic reneval:
1. my way
crontab -e
add the line:
0 0 * * * certbot renew --nginx --quiet
2. way: (not tested found searching...)
rc-service --list | grep -i crond
when the output is crond then --> rc-service crond start && rc-update add crond
create script:
#!/bin/sh
python3 -c 'import random; import time; time.sleep(random.random() * 3600)' && sudo certbot renew -q
The location is /etc/periodic/daily/renew_letsencrypt. Save there
chmod a+x /etc/periodic/daily/renew_letsencrypt
validate it:
run-parts --test /etc/periodic/daily
output should be:
/etc/periodic/daily/renew_letsencrypt
- Details
- Written by: Super User
- Category: Proxmox
- Hits: 15
Nextcloud Client while uploading files show everytime - file too large -, to solved this i needed to change /etc/nginx/nginx.conf
by setting client_max_body_size 512m
.
Changing the php.ini did not solve the problem.
- Details
- Written by: Super User
- Category: Proxmox
- Hits: 1
Turnkey Linux itself has the confconsole to configure the SSL Encryption, but for simple redirection this will not work, you need a A entry in the dns server. Using Flocus extension and Passwords extension without self signed certificate will produce errors.
Best way is, to use also the cerbot.
Short way for certbot certificate (as root):
python3 -m venv /opt/certbot/
/opt/certbot/bin/pip install certbot certbot-apache
ln -s /opt/certbot/bin/certbot /usr/bin/certbot
certbot --apache
Cron job for renewing the certificate
echo "0 0,12 * * * root /opt/certbot/bin/python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew -q" | tee -a /etc/crontab > /dev/null