2019-10-12 17:13:36 +00:00
|
|
|
title: How to configure ucloud
|
|
|
|
---
|
|
|
|
body:
|
|
|
|
|
|
|
|
**THIS SITE IS UNDER CONSTRUCTION**
|
|
|
|
|
|
|
|
![under construction](/underconstruction.jpg)
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
|
|
|
In ucloud **etcd** is the main storage backend. All ucloud components
|
|
|
|
need to be able to access etcd.!
|
|
|
|
|
|
|
|
## Base configuration
|
|
|
|
|
|
|
|
The main configuration is **/etc/ucloud/ucloud.json**.
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"etcd": {
|
|
|
|
...
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
* The etcd
|
|
|
|
object contains the host, port and other configurations. Lookup
|
|
|
|
the [python-etcd3
|
|
|
|
documentation](https://python-etcd3.readthedocs.io/en/latest/usage.html)
|
|
|
|
for details.
|
|
|
|
|
2019-10-12 19:27:57 +00:00
|
|
|
Example configuration:
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-12 17:13:36 +00:00
|
|
|
## etcd based configuration REFERENCE
|
|
|
|
|
2019-10-12 17:20:25 +00:00
|
|
|
### /ucloud-core/
|
2019-10-12 17:13:36 +00:00
|
|
|
|
|
|
|
Contains:
|
|
|
|
|
|
|
|
* OTP_SERVER=https://the-otp-server/ungleichotp/
|
|
|
|
* OTP_AUTH_NAME=xxxxxxxx
|
|
|
|
* OTP_AUTH_SEED=xxxxxxxx
|
|
|
|
* OTP_AUTH_REALM=xxxxxxxx
|
|
|
|
|
2019-10-12 17:20:25 +00:00
|
|
|
(needs to be modified to fit etcd format / maybe json?)
|
|
|
|
|
2019-10-12 17:13:36 +00:00
|
|
|
|
|
|
|
### /ucloud-pay/stripe-private-key
|
|
|
|
|
|
|
|
Contains the private key for communication with stripe.
|