Separate username/pass from spads.conf

Separate username/pass from spads.conf

SpringRTS Perl Autohost for Dedicated Server

Moderators: Moderators, Lobby Developers, SPADS AutoHost

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Separate username/pass from spads.conf

Post by Forboding Angel »

And call it from a separate file. The reasons are probably fairly obvious. Perhaps you want to run an autohost for someone and you want to put the conf files in a public repo (cause private is not free) that they can edit which is pulled every so often, but you don't want them to have the user/pass for the bot (or anyone else for that matter).

I can haz separation?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Separate username/pass from spads.conf

Post by Forboding Angel »

Actually this should be separated as well:

Code: Select all

# Lobby connection parameters
lobbyHost:lobby.springrts.com
lobbyPort:8200
lobbyReconnectDelay:30
lobbyFollowRedirect:1
lobbyLogin:%login%
lobbyPassword:%password%

# Local network configuration
localLanIp:
autoHostPort:8454
forceHostIp:

# SPADS files
binDir:%installDir%
etcDir:%etcDir%
varDir:%varDir%
logDir:%logDir%
User avatar
ThinkSome
Posts: 387
Joined: 14 Jun 2015, 13:36

Re: Separate username/pass from spads.conf

Post by ThinkSome »

You can use my SPADS multi-hosting/management system:

https://notabug.org/specing/spring1944_spads

It does not depend on Spring:1944 (I'm also hosting The Cursed)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Separate username/pass from spads.conf

Post by Forboding Angel »

<Bernie sideeye>
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: Separate username/pass from spads.conf

Post by bibim »

It's already possible to separate any SPADS setting from main configuration files, you just need to use "configuration macros" and/or "configuration includes", as explained here.
These functionalities are available since first SPADS version, which is 8 years old.
Post Reply

Return to “SPADS AutoHost”