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?
Separate username/pass from spads.conf
Moderators: Moderators, Lobby Developers, SPADS AutoHost
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Separate username/pass from spads.conf
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%
Re: Separate username/pass from spads.conf
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)
https://notabug.org/specing/spring1944_spads
It does not depend on Spring:1944 (I'm also hosting The Cursed)
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Separate username/pass from spads.conf
<Bernie sideeye>
Re: Separate username/pass from spads.conf
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.
These functionalities are available since first SPADS version, which is 8 years old.