So these instructions, with Fedora 26 Minimal instead of 25, and NextCloud 12 instead of 11. Everything will likely work the same other than that.

https://mangolassi.it/topic/13573/install-nextcloud-11-03-on-fedora-25-minimal