mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
Listen on 0.0.0.0 instead of the hostname
This patch modify the configuration of `makegocons` and `rcons` for goconserver. `cat /etc/goconserver/server.conf` ``` global: host: 0.0.0.0 ssl_key_file: /etc/xcat/cert/server-key.pem ssl_cert_file: /etc/xcat/cert/server-cert.pem ssl_ca_cert_file: /etc/xcat/cert/ca.pem logfile: /var/log/goconserver/server.log api: port: 12429 console: port: 12430 ```
This commit is contained in:
parent
ff5f21e283
commit
cadf5c60e1
@ -149,7 +149,8 @@ elif [ $USE_GOCONSERVER == "1" ]; then
|
||||
CONGO_SSL_CERT=$HOME/.xcat/client-cred.pem \
|
||||
CONGO_SSL_CA_CERT=$HOME/.xcat/ca.pem \
|
||||
CONGO_PORT=12430 \
|
||||
CONGO_SERVER_HOST=$CONSERVER"
|
||||
CONGO_SERVER_HOST=$CONSERVER \
|
||||
CONGO_URL=https://$CONSERVER:12429"
|
||||
|
||||
if [ "$CONSERVER" == `hostname` ]; then
|
||||
exec env $CONGO_ENV /usr/bin/congo console $1
|
||||
|
@ -324,7 +324,7 @@ sub start_goconserver {
|
||||
xCAT::Utils->runcmd($cmd, 0);
|
||||
if ($::RUNCMD_RC != 0) {
|
||||
my $config= "global:\n".
|
||||
" host: $host\n".
|
||||
" host: 0.0.0.0\n".
|
||||
" ssl_key_file: /etc/xcat/cert/server-key.pem\n".
|
||||
" ssl_cert_file: /etc/xcat/cert/server-cert.pem\n".
|
||||
" ssl_ca_cert_file: /etc/xcat/cert/ca.pem\n".
|
||||
|
Loading…
x
Reference in New Issue
Block a user