Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
flockwave-server / gateway / config.py
Size: Mime:
"""Default configuration for the Skybrush gateway server.

This script will be evaluated first when the gateway attempts to load its
configuration. Configuration files may import variables from this module
with `from flockwave.gateway.config import SOMETHING`, and may also modify
them if the variables are mutable.
"""

# IP address on which the gateway will be listening for incoming HTTP requests
HOST = "127.0.0.1"

# Port on which the gateway will be listening for incoming HTTP requests
PORT = 8080

# Maximum number of workers to launch at the same time
MAX_WORKERS = 4

# Secret key used for JWT tokens sent to the gateway when someone wants to
# spin up a new worker. Only tokens signed with this key will be accepted.
JWT_SECRET = "a-string-secret-at-least-256-bits-long"

# Set this to a truthy value to make the root URL redirect to aonther address
ROOT_REDIRECTS_TO = None

# Specify a custom URL template to return for the spawned worker processes
# if you are sitting behind a proxy.
PUBLIC_URL = "http://share.skybrush.io:4117/app/"

# Configuration object to use for spawned workers
WORKER_CONFIG = {
    "EXTENSIONS": {
        "auth": {},
        "auth_jwt": {"secret": JWT_SECRET},
        "auto_shutdown": {"timeout": 30},
        "connection_limits": {
            "auth_deadline": 10,
            "max_clients": 1,
            "max_duration": 3600,
        },
        "frontend": {},
        "http_server": {"host": "", "port": "@PORT@"},
        "show": {},
        "socketio": {},
        "system_clock": {},
        "virtual_uavs": {
            "arm_after_boot": True,
            "add_noise": False,
            "count": 5,
            "delay": 0.2,
            "enabled": False,
            "id_format": "{0:02}",
            "origin": [19.062159, 47.473360],  # ELTE kert
            "orientation": 0,
            "takeoff_area": {"type": "grid", "spacing": 5},
        },
    }
}