我试图在OPENSHIFT Online上设置Syncthing作为DIY项目。我提取了二进制文件&把它推到了Openshift。由于我无法在Openshift上使用0.0.0.0
,因此我使用$OPENSHIFT_DIY_IP
列出了8080.
但是当我运行(在ssh到服务器之后)./syncthing -home="$OPENSHIFT_REPO_DIR/diy/syncthing/.config"
时,它启动了Web GUI,但我无法从dns访问它。
我在githhub提出了一个问题:https://github.com/syncthing/syncthing/issues/1310
但我认为,这与Openshift对PORTS& amp; IPS。
那么如何在Openshift上运行Syncthing?
这是我的OPENSHIFT_REPO_DIR / diy / syncthing / .config / config.xml(手动创建):
<configuration version="7">
<folder id="default" path="/var/lib/openshift/54da534a58773ca00a6/app-root/runtime/repo/diy/syncthing/sync" ro="false" rescanIntervalS="60" ignorePerms="false">
<device id="GTD5SPM-ZNKRARD-Y6JFM3C-PZIC56R-XWOAPIN-CR2ZDTG-EKJMN2H-GJMPKQ6"></device>
<versioning></versioning>
<lenientMtimes>false</lenientMtimes>
<copiers>0</copiers>
<pullers>0</pullers>
<hashers>0</hashers>
</folder>
<device id="YBS7UI3-5Y7V7W2-KPTZZR4-LU3Y5TH-UTE6JJS-ID55PT3-GSI73NW-ZBOHSQU" name="ex-std-node515.prod.rhcloud.com" compression="false" introducer="false">
<address>dynamic</address>
</device>
<gui enabled="true" tls="true">
<address>127.12.74.128:8080</address>
<user>jb</user>
<password>$2a$10$EKXXXXX...</password>
<apikey>O80CDOJ9LVXXXXXXXXXXXXXXXXXX</apikey>
</gui>
<options>
<listenAddress>127.12.74.128:24097</listenAddress>
<globalAnnounceServer>udp4://announce.syncthing.net:22026</globalAnnounceServer>
<globalAnnounceEnabled>true</globalAnnounceEnabled>
<localAnnounceEnabled>true</localAnnounceEnabled>
<localAnnouncePort>21025</localAnnouncePort>
<localAnnounceMCAddr>[ff32::5222]:21026</localAnnounceMCAddr>
<maxSendKbps>0</maxSendKbps>
<maxRecvKbps>0</maxRecvKbps>
<reconnectionIntervalS>60</reconnectionIntervalS>
<startBrowser>false</startBrowser>
<upnpEnabled>true</upnpEnabled>
<upnpLeaseMinutes>0</upnpLeaseMinutes>
<upnpRenewalMinutes>30</upnpRenewalMinutes>
<urAccepted>0</urAccepted>
<urUniqueID></urUniqueID>
<restartOnWakeup>true</restartOnWakeup>
<autoUpgradeIntervalH>12</autoUpgradeIntervalH>
<keepTemporariesH>24</keepTemporariesH>
<cacheIgnoredFiles>true</cacheIgnoredFiles>
<progressUpdateIntervalS>5</progressUpdateIntervalS>
<symlinksEnabled>true</symlinksEnabled>
</options>
</configuration>