Comments (15)
Navigate to...
/var/www/nextcloud/config
enter the config file...
sudo nano config.php
Find the trusted domains...
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.xxx.xxx',
4 => 'letsencrypt domain',
Add the domain of the actual IP the subdomain points to...
2 => 'actual.domain.letsencrypt.points.to',
Save file and exit from Nano.
Do not simply restart the Apache webservice, but a warm reboot will suffice.
Issue is resolved. Closing issue.
from nextcloudpi.
Hi,
I am glad you got it working.
I do not understand very well... isn't it 2 => actual.domain
the same as 4 => letsencrypt.domain
? or am I missing some configuration that you have?
Also, I am interested if anybody else run into this.
Thanks for your feedback
from nextcloudpi.
I'll reopen this until we clarify. Maybe there is something else that can be done from NCP to avoid this situation.
from nextcloudpi.
isn't it 2 => actual.domain the same as 4 => letsencrypt.domain?
I would think it is, or should be, just by how I understand it. Though, I would enter the letsencrypt.domain and be met with the solid background color, only. It wasn't until I did an entry with actual.domain that the logo and login image would appear. I would agree that the letsencrypt.domain should be sufficient.
I also notice during my syncs that the same issue would be encountered for larger file syncs. But, I think that just may be a performance limitation by the RPi3, itself.
I also get a lot of connection timeouts during syncs on 12.0.0, just like when I used OwnCloud on the unit.
from nextcloudpi.
Update- I just went to the letsencyrpt.domain and the login background image and logo image are not there. It is only the background color. I own the domain I'm using for the letsencrypt.domain, not that that would make any difference/"should".
from nextcloudpi.
from nextcloudpi.
Update- I shut off Fail2Ban and the images load, now. I'm going to watch it the next couple of days. If it still shows, Fail2Ban may be the problem.
from nextcloudpi.
fail2ban... I'll keep an eye on it.
Do you have modsecurity
on?
update: just tried with and without fail2ban
on a fresh image... couldn't reproduce yet
from nextcloudpi.
I was re-reading...
I still can't understand the subdomain thing. Is that what you input in nextcloudpi-config
in the letsencrypt
section?
from nextcloudpi.
In the LetsEncrypt selection of the NCP Config utility, I entered the address for NCP which includes the sub.
from nextcloudpi.
Performed a full rebuild Activated Fail2Ban. Result:
Conclusion: Fail2Ban was/is the issue.
from nextcloudpi.
good one
does it happen only from outside? or does it also happen using your local network IP?
Could you have a look at the logs for fail2ban, apache and nextcloud?
I want to reproduce it myself
from nextcloudpi.
finally, I could reproduce it
thanks
from nextcloudpi.
It seems like I have found the root cause. CSP code does not play well with PHP cache.
I have reported the issue to the server developers ( nextcloud/server#5664 )
The most likely outcome is that I will have to blacklist some files from PHP cache.
Does not seem fail2ban
related. According to my testing, it can be worked around for now by issuing these commands
systemctl stop php7.0-fpm
systemctl stop mysqld
systemctl start php7.0-fpm
systemctl start mysqld
or rebooting. The problem is that then, if we try to access through IP again (after we last did through domain) we would be in the same situation.
It is a minor issue though, as the user will most likely access the same way always
from nextcloudpi.
This has been fixed upstream. Will be included in NC 12.0.1
Will close now, thanks for reporting and please, reopen if it still happens after update.
from nextcloudpi.
Related Issues (20)
- Admin Settings result in Internal Server Error
- Installation on Odroid HC1 HOT 2
- ncp-dist-upgrade to bookworm failed on ncp 1.54.2 HOT 16
- RaspberryPi5 v1.54.0 - Internal Server Error HOT 3
- Some packages could not be installed - sudo ncp-dist-upgrade HOT 2
- Website down? HOT 2
- Internal error encountered using twingate HOT 1
- nc-update-nextcloud does not prevent updating to unsupported versions HOT 4
- ncp-update fails at --fetch-keys https://packages.sury.org/php/apt.gpg HOT 1
- Error when enabling the Metrics app
- Error while applying update 1.54.0. Exiting... HOT 2
- NCPI 1.54.0 x86 LXC image: redis does not start due to faulty ownership HOT 1
- Lets-encrypt message in web panel "You should run Lets Encrypt for trusted encrypted access" HOT 2
- Pre-set users/passwords on NextCloudPi HOT 4
- Message "Update to bookworm available. Type 'sudo ncp-dist-upgrade' to upgrade" is shown after dist upgrade completed HOT 2
- Logged out automatically - Session token problem HOT 5
- RelatedResourceProviderNotFound
- dnsmasq error on installation HOT 1
- Alert admin when sd card lacks enough space HOT 1
- Better information in restore dialog HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextcloudpi.