Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not detect https with CloudFlare Flexible SSL #7221

Closed
Ovear opened this issue Nov 19, 2017 · 1 comment
Closed

Can not detect https with CloudFlare Flexible SSL #7221

Ovear opened this issue Nov 19, 2017 · 1 comment

Comments

@Ovear
Copy link

Ovear commented Nov 19, 2017

Hello, i found that it seems that NextCloud can not work with CloudFlare Flexible SSL fine after a unknown update. When i use Flexible SSL, NextCloud still use http://domain as a base domain, which caused "Content Security Policy" failed.
This solution is to use "X-Forwarded-Proto" to detect protocol, but NextCloud won't trust this at default, and 'trusted_proxies' section doesn't support CIRD which means there is no good method to add any public cdn ip range to this list.
#6550

Steps to reproduce

  1. Turn on CloudFlare Flexible
  2. Open your website
  3. That's it

Expected behaviour

NextCloud use https://domain as a base domain.

Actual behaviour

NextCloud use http://domain as a base domain.

Server configuration

Operating system: Centos 6

Web server: Apache 2.4

Database: MySQL 5.7

PHP version: 5.6.30

Nextcloud version: (see Nextcloud admin page) 12.0.3

Updated from an older Nextcloud/ownCloud or fresh install: No

Where did you install Nextcloud from: Official website

Signing status:

Signing status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants