nextcloud 聯盟功能Federation
先講結論,nextcloud聯盟功能分享的目錄,並不會把檔案傳到對方服務器。(這樣就無法達到檔案兩邊都有的需求)
如何正確啟用聯盟功能
1. 啟用「Federation」app
2. 在管理介面->分享頁面,做好設定以及加入遠端服務器

3. 設定檔加上「allow_local_remote_servers = true」
修改 config/config.php

或是下指令
occ config:system:set allow_local_remote_servers --value true --type bool
4. 同步位址簿(需加入crontab定期執行)
occ dav:sync-system-addressbook occ federation:sync-addressbooks
5. 分享目錄給遠端的聯盟使用者

6. 遠端使用者將會接收到分享目錄的請求
