Skip to content

Configuration Values.

Jim Bulkowski edited this page Feb 27, 2015 · 1 revision

Default Configuration values

NODE_ENV: 'development' [development/production]

production binds to ports 80 and 443 for http/https
development binds to whatever ports are set below.

octorp_debug: false, [true/false]

Enables additional debug output.

octorp_redis_url: 'redis://some.url:6379/0'

Redis server connection details, this most certainly should
be running on the same machine as OctoRP, at the very least
on the same local network with a fast connection.

octorp_default_address: 'localhost' [example.com]

Set this to whatever base host your wildcard ssl certificate is configured
for. ie: paperelectron.com

octorp_bind_address: '0.0.0.0'

Bind to a specific ip address on your server, this is useful for servers with multiple
NICs. '0.0.0.0' binds to all interfaces.

octorp_redirect_ssl: true [true/false]

Redirect all non-http traffic to https.

octorp_dev_ssl_port: 8443

https listen port with NODE_ENV=development

octorp_dev_non_ssl_port: 8080

http listen port with NODE_ENV=development

octorp_ssl_base: ~/$USER/.octorp/ssl

Base path that OctoRP will look for ssl certificate files.

octorp_ssl_key: 'key.pem'

Servers SSL key file.

octorp_ssl_cert: 'cert.pem'

Servers SSL certificate file.

octorp_cert_chain: 'Root.crt, other.crt, intermediate.crt'

Comma separated list of files for your Root CA certificate chain, ordered from most
authoritative to least.

~/.octorp/config.json

{
    "NODE_ENV": "development",
    "octorp_debug": false,
    "octorp_redis_url": "redis://127.0.0.1:6379/0",
    "octorp_default_address": "localhost",
    "octorp_custom_index_path": false,
    "octorp_bind_address": "0.0.0.0",
    "octorp_redirect_ssl": true,
    "octorp_dev_ssl_port": 8443,
    "octorp_dev_non_ssl_port": 8080,
    "octorp_ssl_base": "/Users/$USER/.octorp/ssl",
    "octorp_ssl_key": "key.pem",
    "octorp_ssl_cert": "cert.pem",
    "octorp_cert_chain": "Root.crt, other.crt, intermediate.crt"
}