Change the env var back. Will need factoring on the rpi controller first.
parent
998b8959ca
commit
4f2d91509b
|
@ -21,7 +21,7 @@ The key responsibility of the API is *information and permissions management*. T
|
|||
0. `git clone https://github.com/FarmBot/Farmbot-Web-API farmbot-web-app`
|
||||
0. `cd farmbot-web-app`
|
||||
0. `bundle install`
|
||||
0. `MQTT_BROKER_URL=your_mqtt_server_domain rails s`
|
||||
0. `MQTT_HOST=your_mqtt_server_domain rails s`
|
||||
0. Start the [Web Front End](https://github.com/FarmBot/farmbot-web-frontend) (See it's README)
|
||||
0. Open localhost in your [favorite web browser](www.google.com/chrome)
|
||||
|
||||
|
@ -41,7 +41,7 @@ Here are some of the configuration options you must set when provisioning a new
|
|||
* **Encryption keys**: Encryption keys will be autogenerated if not present. They can be reset using `rake keys:generate`. If `ENV['RSA_KEY']` is set, it will be used in place of the `*.pem` files. Useful for environments like Heroku, where file system access is not allowed.
|
||||
* `ENV['MONGO_URL']`: URL pointing to running MongoDB instance.
|
||||
* `ENV['DEVISE_SECRET']`: Used for devise. Use `rake secret` to generate a new value.
|
||||
* `ENV['MQTT_BROKER_URL']`: Host (no port or slashes or anything) of running [MQTT gateway](https://github.com/FarmBot/mqtt-gateway). This is required so that Farmbot can know where to connect when given an authorization token.
|
||||
* `ENV['MQTT_HOST']`: Host (no port or slashes or anything) of running [MQTT gateway](https://github.com/FarmBot/mqtt-gateway). This is required so that Farmbot can know where to connect when given an authorization token.
|
||||
* `ENV['JS_FILE_URL']`: URL pointing to the [Farmbot Frontend](https://github.com/FarmBot/farmbot-web-frontend) `bundle.js` file. This is what gets injected into the `<script>` tag when the user visits `/app`.
|
||||
|
||||
**We can't fix issues we don't know about.** Please submit an issue if you are having trouble installing on your local machine.
|
||||
|
|
|
@ -3,7 +3,7 @@ class SessionToken
|
|||
PRIVATE_KEY = KeyGen.current
|
||||
PUBLIC_KEY = KeyGen.current.public_key
|
||||
ALG = 'RS256'
|
||||
MQTT = ENV['MQTT_BROKER_URL'] || "YOU_DID_NOT_SET_MQTT_BROKER_URL" # mqtt.farmbot.io
|
||||
MQTT = ENV['MQTT_HOST'] || "YOU_DID_NOT_SET_MQTT_HOST" # mqtt.farmbot.io
|
||||
|
||||
attr_accessor :encoded, :unencoded
|
||||
|
||||
|
|
Loading…
Reference in New Issue