2

我试图在 OPENSHIFT Online 上将Syncthing设置为 DIY 项目。我提取了二进制文件并将其推送到 Openshift。因为我不能0.0.0.0在 Openshift 上使用,所以我$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 & 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>

4

0 回答 0