简体   繁体   English

确保nextcloud的首次设置

[英]Secure first time setup of nextcloud

I want to setup a Nextcloud on my personal VPS. 我想在个人VPS上设置Nextcloud。 To do the first time setup, I have to access the webserver via my browser and it says I should do it over http://localhost/nextcloud/ ( Nextcloud Installation Wizard (Right in the beginning), but this does not work for my because the VPS is not my local machine. So I have to open up the setup website to the public web and everybody who would know the IP of my VPS could do it first time setup. I read other tutorials from web applications (for example Confluence Confluence Installation Documentation (Point 4.2)) where this is the common way of setting things up the first time. Is there another secure way to do this in general for setting up an webapp for the first time? Firewall? VPN? How do you guys do it? 要进行首次设置,我必须通过浏览器访问Web服务器,并说我应该通过http:// localhost / nextcloud /Nextcloud安装向导 (一开始就正确)进行此操作,但这不适用于我因为VPS不是我的本地计算机,所以我必须向公共网站开放设置网站,并且每个知道我的VPS IP的人都可以进行第一次设置。我从Web应用程序中阅读了其他教程(例如Confluence Confluence安装文档 (第4.2点)),这是首次设置的常用方法,一般而言,是否有另一种安全的方法可用于首次设置Web应用程序,防火墙,VPN?会吗

Thank you for your help 谢谢您的帮助

Yes - this is the common way on how to set it up. 是的-这是设置方法的常用方法。 In the unlikely case that somebody else sets it up in the short time between placing the files and running the installer, you could also remove the config/config.php and do the setup again. 在极少数情况下,其他人会在放置文件和运行安装程序之间的较短时间内对其进行设置,您也可以删除config / config.php并再次进行设置。

If you want to not do the web based setup you could use the CLI tool to run the installation. 如果不想执行基于Web的安装,则可以使用CLI工具来运行安装。 It also asks in an interactive way to set up Nextcloud or all the parameters can be provided via CLI options. 它还以交互方式要求设置Nextcloud,或者可以通过CLI选项提供所有参数。

See https://docs.nextcloud.com/server/12/admin_manual/installation/command_line_installation.html for more details on the CLI installation method. 有关CLI安装方法的更多详细信息,请参见https://docs.nextcloud.com/server/12/admin_manual/installation/command_line_installation.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM