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

[HELP] Using Nextcloud with nginx & Docker behind zoraxy #377

Open
LeonardoGamar opened this issue Nov 5, 2024 · 2 comments
Open

[HELP] Using Nextcloud with nginx & Docker behind zoraxy #377

LeonardoGamar opened this issue Nov 5, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@LeonardoGamar
Copy link

What happened?
I was using npm for a long time, but I switched to zoaxy a few days before. I think Zoraxy i a really cool alternative, so thank you tobychui for your great work :)

Since I use Zoraxy my nextcloud told me that the reverse proxy configuration is faulty. I think the HTTP Header configuration is wrong an / or the websocket support.

Describe what have you tried
I was reading a lot of discussions but I can't find the right config for zoraxy and nextcloud with nginx.

Describe the networking setup you are using
I'm using Zoraxy and Nextcloud with docker
Additional context
Add any other context or screenshots about the feature request here.

@LeonardoGamar LeonardoGamar added the help wanted Extra attention is needed label Nov 5, 2024
@tobychui
Copy link
Owner

tobychui commented Nov 5, 2024

Hey @LeonardoGamar, as you didn't provide any information regarding the warning you encountered nor your Zoraxy proxy config, there isn't much I can help.

As I recall, there were a few issues before discussing the use of NextCloud with Zoraxy like this one. I guess you can dig into the issue and see if any closed issue have solved similar problems as yours.

@techteam-pro-discount
Copy link

techteam-pro-discount commented Nov 13, 2024

i have the same setup, but 0 problems.
so let me share my settings:
{
"ProxyType": 1,
"RootOrMatchingDomain": "nextcloud.yourdomain.com",
"MatchingDomainAlias": [],
"ActiveOrigins": [
{
"OriginIpOrDomain": "TheNextcloudIP",
"RequireTLS": false,
"SkipCertValidations": false,
"SkipWebSocketOriginCheck": true,
"Weight": 1,
"MaxConn": 0
}
],
"InactiveOrigins": [],
"UseStickySession": false,
"UseActiveLoadBalance": false,
"Disabled": false,
"BypassGlobalTLS": false,
"VirtualDirectories": [],
"UserDefinedHeaders": [],
"RequestHostOverwrite": "",
"HSTSMaxAge": 31536000,
"EnablePermissionPolicyHeader": false,
"PermissionPolicy": null,
"DisableHopByHopHeaderRemoval": false,
"RequireBasicAuth": false,
"BasicAuthCredentials": [],
"BasicAuthExceptionRules": [],
"RequireRateLimit": false,
"RateLimit": 1000,
"AccessFilterUUID": "default",
"DefaultSiteOption": 0,
"DefaultSiteValue": ""
}

i enabled hsts because im using cloudflare and had some proxy problems aswell (idk if hsts fixed it but it works now)
now to nextcloud:
default apache config as described in nextcloud docs
add the domain to trusted domains!!!!

nextcloud/config/config.php:
'trusted_domains' =>
array (
0 => 'nextcloudIP',
1 => 'nextcloud.yourdomain.com',
),
'overwrite.cli.url' => 'nextcloud.yourdomain.com',
'trusted_proxies' =>
array (
0 => '192.168.178.0/24',
),
set the ip range, for me directly using the ip didnt worked.

Maybe that helps ^^

Edit: i dont use nextcloud docker, i use bare metal because i had a ton of problems with nextcloud running in a docker, for example not starting, 300+ errors in logs, not working logins and so on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants