xabber-server icon indicating copy to clipboard operation
xabber-server copied to clipboard

Change setup.sh

Open eforulus opened this issue 4 years ago • 3 comments

When installed in automatic mode in the function check_srv(), the IPNOW constant gets the IP private, but for successful verification letsencrypt needs a public IP. It might be reasonable to change the value from IPNOW =; $ (hostname -I) to IPNOW = $ (./dig + short myip.opendns.com @ resolver1.opendns.com)

eforulus avatar Sep 19 '19 15:09 eforulus

The value IPNOW just take all IP of your server. After it is another value called SERVERIP=$( ./dig +short $XABBER ) which check your public IP. If one of your IPs in IPNOW is valid - it will work.

Sternstein avatar Sep 20 '19 10:09 Sternstein

@Sternstein i think you misunderstood what @eforulus was asking.

Quick installation is available only on servers that have at least one public IP directly on one of its interfaces. The goal is to make it easily installable on a VPS/VDS hosting. We should probably update installation instructions to reflect this. If a server is hidden behind NAT, then a person installing a server probably knows what he is doing, so he should use advanced installation.

andrewnenakhov avatar Sep 20 '19 12:09 andrewnenakhov

Yes, I meant it.

eforulus avatar Sep 20 '19 13:09 eforulus