summaryrefslogtreecommitdiffstats
path: root/clover/cloverctl/src/cloverctl/yaml/server.yaml
diff options
context:
space:
mode:
authorearrage <eddie.arrage@huawei.com>2018-10-11 14:11:31 -0700
committerearrage <eddie.arrage@huawei.com>2018-10-11 14:12:31 -0700
commitb850f07e5abce7545243eeb674495b6960d6d105 (patch)
tree12e706711538298d7b01fbe11a2d4e15276d8f15 /clover/cloverctl/src/cloverctl/yaml/server.yaml
parentee2169ee4b8fb3539ad173fbc1557b54b2f2216f (diff)
Add nginx services control functionality
- Modify nginx server template to use clover-controller in clover-system namespace for file upload - Add ability to set nginx server paths and move uploaded files in clover-controller and set/get file upload metadata - Add cloverctl commands to set nginx server and lb configurations - Add example yaml files to configure nginx server and lb v1/v2 from cloverctl - Modify service definition for http-lb versions to distinguish the two versions for GRPC messaging from clover-controller in SDC deployment yaml Change-Id: I5c6866c5ff3de358939c58ea8c0bde64a69c6eca Signed-off-by: earrage <eddie.arrage@huawei.com>
Diffstat (limited to 'clover/cloverctl/src/cloverctl/yaml/server.yaml')
-rw-r--r--clover/cloverctl/src/cloverctl/yaml/server.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/clover/cloverctl/src/cloverctl/yaml/server.yaml b/clover/cloverctl/src/cloverctl/yaml/server.yaml
new file mode 100644
index 0000000..b44779a
--- /dev/null
+++ b/clover/cloverctl/src/cloverctl/yaml/server.yaml
@@ -0,0 +1,16 @@
+server_port: "9180"
+server_name: "clover-server1"
+site_root: "/var/www/html"
+site_index: index.html
+upload_path_config: "/upload"
+upload_path_test: "/upload_test"
+locations:
+ - uri_match: "/clover/testurl"
+ directive: "try_files $uri @default2"
+ path: "/clover/testurl"
+ - uri_match: "/test"
+ directive: "try_files $uri @default1"
+ path: "/test"
+files:
+ - src_file: "/var/www/html/upload/0000000001"
+ dest_file: "var/www/html/clover/testurl/file1.png"