Giter Site home page Giter Site logo

Comments (3)

moloch-- avatar moloch-- commented on July 24, 2024

Post the contents of your rootthebox.cfg file please.

from rootthebox.

BitSledge avatar BitSledge commented on July 24, 2024
###############################################
      Root the Box - Configuration File
###############################################

[Server]
# Web server listen port
port = 8888

# Debug mode provides stack traces, etc
debug = True

# Bootstrap type 'production' / 'developement'
bootstrap = developement

# Set "domain" to your local ip/hostname, this is the address websockets will connect to
# Set to 'auto' to attempt to resolve your local ip automatically
domain = localhost

# Default theme
theme = cyborg.min.css

# Cache static files in memory
cache_files = True

[Logging]
# Sets the log level for the console / terminal
console_level = debug

# Enable/disable file logs
file_logs = True

# Set logging level for the file output (if save_logs is enabled)
file_level = debug

# Path to output file for logs (if save_logs is enabled)
logfile = rtb.log

# Allow admins to view logs from web ui
enable_logviewer = True

[Ssl]
# Enable/disable SSL server
# You'll need to manually setup an HTTP/302 to HTTPS if you want it
use_ssl = False

# Generate a self signed certificate/key like so:
# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout bar.key -out foo.crt

# Certificate file path
certificate_file = foo.crt
# Key file path
key_file = bar.key

[Cache]
# Memcached settings
memcached_host = 127.0.0.1
memcached_port = 11211

# Session settings (stored in memcached)
session_age = 1800
session_regeneration_interval = 1800

[Security]
# Comma separated list of ips that can access the admin interface
# For example: admin_ips = 127.0.0.1,192.168.0.25,10.34.0.2
admin_ips = 127.0.0.1,192.168.114.140,192.168.1.10

# If x-headers is set to 'True', the app will honor the real IP address
# provided by a load balancer in the X-Real-Ip or X-Forwarded-For header.
# NOTE: This can affect the IP address security restrictions.
x-headers = False

# max_password_length is the number of chars a user can have for their "bank password"
max_password_length = 7

[Recaptcha]
# Recaptcha private key; get one at http://recaptcha.com
use_recaptcha = yes
private_key = 6LcJJ88SAAAAAPPAN72hppldxema3LI7fkw0jaIa

[Database]
# Supports 'mysql', 'postgresql', or 'sqlite'; defaults to mysql
dialect = mysql

# This is the database name we're connecting to
name = rootthebox

# These are not used for sqlite
# Leave blank or set to 'RUNTIME' if you want to prompt for creds when the application starts
# this keeps sensitive db credentials out of plain-text files, and is recommended for production.
host = localhost
user = rtb
password = rootthebox

# Set orm_sql to 'True' to log sql queries made by the ORM this may
# contain sensitive information!  Enable only when you need to debug problems
# Very verbose when True
orm_sql = False
bot_sql = False

[Game]
# Most game settings are stored in the database
# but these are needed before we access the db
# Game name (appears in web ui)
game_name = Root the Box

# Allow users to create their own teams
public_teams = True

# Limit team size to
max_team_size = 3

# Require a registration token to create an account
restrict_registration = False

# Enable/disable use of the black market
use_black_market = True

# Enable/disable botnet features
use_bots = True

# Whitelist the IPs bots can connect from
whitelist_box_ips = False

# Reward amount for each bot per interval
bot_reward = 100

from rootthebox.

moloch-- avatar moloch-- commented on July 24, 2024

You removed the '#' from line 2 (check the default config - https://github.com/moloch--/RootTheBox/blob/master/rootthebox.cfg#L2 ), you need to re-add it so that the line is a comment and not treated as a configuration setting; not a bug in the code, but I could certainly add better error handling around this case.

from rootthebox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.