-
Notifications
You must be signed in to change notification settings - Fork 269
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
does phpClientHttpsFix or the OVERWRITEPROTOCOL env variable actually do anything? #243
Comments
The environment variable is used by the Nextcloud docker containers |
It looks like we do add in these env vars according to our helm/charts/nextcloud/templates/_helpers.tpl Lines 68 to 72 in a491977
This has however been updated to move to the @bellis-ai, is this still affecting you with the latest version of the helm chart? As @n2qz pointed out, it does still seem to be in use for the docker container, so a good test to start with would be seeing if the issue is still present when using the ENV var directly when running the docker container. If it's still broken, we should open a ticket in that repo to take a further look there. I can try and test this out on my own infra when I have some time, but I am working on these issues in my off hours, so there may be some delay. Thanks for all your patience through this 🙏 |
When we merge #464, it also includes a new config file from upstream that makes setting these env vars and ensuring they get added to a config.php file a little easier: After that's merged, @provokateurin, should we create a section in the values.yaml like 🤔 : nextcloud:
reverseProxy:
overwriteHost: ""
overwriteProtocol: ""
overwriteCliUrl: ""
overwriteWebRoot: ""
overwriteCondAddr: ""
trustedProxies: "" And we'd also include more info from the reverse proxy overwrite parameters docs too? Just so that it's clear how you update these values? I personally feel like
|
Adding such a seciont sounds good to me 👍 |
I see a lot of issues trying to fix CSP issues by using the
phpClientHttpsFix.enabled = true
variable (which sets up the OVERWRITEPROTOCOL env variable on the pod)However, a quick search of the actual nextcloud repo shows that this environment variable is referenced nowhere. Personal testing with this variable led to nothing happening at all...
On the converse, it appears that it's necessary to set the 'overwriteprotocol' => 'https' config variable if you want the desired behavior.
The text was updated successfully, but these errors were encountered: