diff --git a/src/sandstorm/config.c++ b/src/sandstorm/config.c++ index d7d037809..cfbc9b047 100644 --- a/src/sandstorm/config.c++ +++ b/src/sandstorm/config.c++ @@ -241,6 +241,8 @@ Config readConfig(const char *path, bool parseUids) { config.allowDemoAccounts = value == "true" || value == "yes"; } else if (key == "ALLOW_DEV_ACCOUNTS") { config.allowDevAccounts = value == "true" || value == "yes"; + } else if (key == "ALLOW_UNINVITED") { + config.allowUninvited = value == "true" || value == "yes"; } else if (key == "IS_TESTING") { config.isTesting = value == "true" || value == "yes"; } else if (key == "HIDE_TROUBLESHOOTING") { diff --git a/src/sandstorm/config.h b/src/sandstorm/config.h index 38e64d169..c70b0bd74 100644 --- a/src/sandstorm/config.h +++ b/src/sandstorm/config.h @@ -25,6 +25,7 @@ struct Config { kj::String sandcatsHostname = nullptr; bool allowDemoAccounts = false; bool isTesting = false; + bool allowUninvited = false; bool allowDevAccounts = false; bool hideTroubleshooting = false; uint smtpListenPort = 30025; diff --git a/src/sandstorm/run-bundle.c++ b/src/sandstorm/run-bundle.c++ index 5472f40e9..10b4853ed 100644 --- a/src/sandstorm/run-bundle.c++ +++ b/src/sandstorm/run-bundle.c++ @@ -2659,6 +2659,7 @@ private: "{ \"build\":", buildstamp, ", \"allowDemoAccounts\":", config.allowDemoAccounts ? "true" : "false", ", \"allowDevAccounts\":", config.allowDevAccounts ? "true" : "false", + ", \"allowUninvited\":", config.allowUninvited ? "true" : "false", ", \"isTesting\":", config.isTesting ? "true" : "false", ", \"hideTroubleshooting\":", config.hideTroubleshooting ? "true" : "false", ", \"wildcardHost\":\"", config.wildcardHost, "\"", diff --git a/tests/run-local.sh b/tests/run-local.sh index 7bd574e11..9661873f4 100755 --- a/tests/run-local.sh +++ b/tests/run-local.sh @@ -138,6 +138,7 @@ rm -rf "$SANDSTORM_DIR" echo "IS_TESTING=true ALLOW_DEMO_ACCOUNTS=true +ALLOW_UNINVITED=true BASE_URL=http://local.sandstorm.io:$PORT WILDCARD_HOST=*.local.sandstorm.io:$PORT PORT=$PORT