Guide to Nextcloud Reverse Proxy without server-side configuration with Cloudflare #6350
MorrowShore
started this conversation in
Wiki
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Cloudflare (without any server-side configuration)
WARNING: This is a security risk as the connection between Nextcloud and Cloudflare will end up unencrypted.
It may be useful however if you'd like to temporarily spin up Nextcloud for testing or troubleshooting things.
Set your AIO server binding IP to 0.0.0.0 (
--env APACHE_IP_BINDING=0.0.0.0 \
) and disable domain validation (--env SKIP_DOMAIN_VALIDATION=true \
) when setting up AIO.In your Cloudflare domain dashboard, go to DNS -> Records, and Create a new DNS A record, pointing your desired subdomain to the server IP address. (Remember to set it to proxy mode here)

In your Cloudflare domain dashboard, go to Rules -> Overview, and Create a new origin rule.
For this origin rule, select a name (it doesn't matter), then set a custom filter, containing your subdomain in the hostname.

and have its destination port rewritten to your AIO server port (11000 per default)

Fill it out with a custom filter, containing your subdomain in the hostname, and set it to bypass.

Advice: If you have incompatible SSL cipher error, you should open your Cloudflare dashboard, go to SSL/TLS -> Overview -> Configure, and set it to flexible.
Advice: Make sure to disable Cloudflares Rocket Loader feature as otherwise Nextcloud's login prompt will not be shown.
Advice: You should quickly graduate to a proper reverse proxy method as this is more or less a band-aid fix.
Beta Was this translation helpful? Give feedback.
All reactions