-
Notifications
You must be signed in to change notification settings - Fork 1
Config XML
Adrian O'Grady edited this page Nov 11, 2020
·
9 revisions
Config.xml can be used to configure Itokawa's settings such as listening port. The config will be used by both the main server application and the cli application.
By default, config.xml can be found in ~/.itokawa/config.xml
. If the file doesn't exist, default settings will be used.
<config>
<application>
<log>
<level>INFO</level>
</log>
</application>
<server>
<port>80</port>
<publish>
<ngrok>
<region>eu</region>
</ngrok>
</publish>
</server>
</config>
Application log configuration.
Key | Values | Default | Description |
---|---|---|---|
level | DEBUG, INFO, DISPLAY, WARN, ERROR | DISPLAY | Log output level |
Settings for the server application.
Key | Values | Default | Description |
---|---|---|---|
port | 1-65534 | 8080 | TCP port to listen on |
If the ngrok publishing section is present, the server will be publicly accessible using ngrok. Keys are mapped to options as defined on the ngrok npm package docs. The example config would be defined as:
<config>
<server>
<publish>
<ngrok>
<proto>http</proto>
<!-- addr>The port is automatically set by Itokawa</addr -->
<auth>user:pwd</auth>
<subdomain>alex</subdomain>
<authtoken>12345</authtoken>
<region>us</region>
<configPath>~/git/project/ngrok.yml</configPath>
</ngrok>
</publish>
</server>
</config>