{"action":"closed","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/7221","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/7221/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/7221/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/7221/events","html_url":"https://github.com/nextcloud/server/issues/7221","id":275157829,"number":7221,"title":"Can not detect https with CloudFlare Flexible SSL","user":{"login":"ovear","id":1362137,"avatar_url":"https://avatars1.githubusercontent.com/u/1362137?v=4","gravatar_id":"","url":"https://api.github.com/users/ovear","html_url":"https://github.com/ovear","followers_url":"https://api.github.com/users/ovear/followers","following_url":"https://api.github.com/users/ovear/following{/other_user}","gists_url":"https://api.github.com/users/ovear/gists{/gist_id}","starred_url":"https://api.github.com/users/ovear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovear/subscriptions","organizations_url":"https://api.github.com/users/ovear/orgs","repos_url":"https://api.github.com/users/ovear/repos","events_url":"https://api.github.com/users/ovear/events{/privacy}","received_events_url":"https://api.github.com/users/ovear/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-19T13:09:24Z","updated_at":"2017-11-20T21:17:21Z","closed_at":"2017-11-20T21:17:20Z","author_association":"NONE","body":"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.\r\nThis 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.\r\nhttps://github.com/nextcloud/server/issues/6550\r\n\r\n### Steps to reproduce\r\n1. Turn on CloudFlare Flexible\r\n2. Open your website\r\n3. That's it\r\n\r\n### Expected behaviour\r\nNextCloud use https://domain as a base domain.\r\n\r\n### Actual behaviour\r\nNextCloud use http://domain as a base domain.\r\n\r\n### Server configuration\r\n\r\n**Operating system**: Centos 6\r\n\r\n**Web server:** Apache 2.4\r\n\r\n**Database:** MySQL 5.7\r\n\r\n**PHP version:** 5.6.30\r\n\r\n**Nextcloud version:** (see Nextcloud admin page) 12.0.3\r\n\r\n**Updated from an older Nextcloud/ownCloud or fresh install:** No\r\n\r\n**Where did you install Nextcloud from:** Official website\r\n\r\n**Signing status:**\r\n<details>\r\n<summary>Signing status</summary>\r\n\r\n"}}
{"actor":{"display_login":"MorrisJobke"}}