diff options
author | Stephen Wong <stephen.kf.wong@gmail.com> | 2018-10-21 06:22:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-21 06:22:45 +0000 |
commit | 7f7c1519ccf71d26770bfa8ad97c333d78323075 (patch) | |
tree | a1f99e5d167f0cb0ed029c142b55eaf33f6c34d5 /clover/cloverctl/src/cloverctl/yaml | |
parent | b713d2f3fee2d8164bf16c7249d75c3da827005b (diff) | |
parent | b850f07e5abce7545243eeb674495b6960d6d105 (diff) |
Merge "Add nginx services control functionality"
Diffstat (limited to 'clover/cloverctl/src/cloverctl/yaml')
-rw-r--r-- | clover/cloverctl/src/cloverctl/yaml/lbv1.yaml | 9 | ||||
-rw-r--r-- | clover/cloverctl/src/cloverctl/yaml/lbv2.yaml | 8 | ||||
-rw-r--r-- | clover/cloverctl/src/cloverctl/yaml/server.yaml | 16 |
3 files changed, 33 insertions, 0 deletions
diff --git a/clover/cloverctl/src/cloverctl/yaml/lbv1.yaml b/clover/cloverctl/src/cloverctl/yaml/lbv1.yaml new file mode 100644 index 0000000..3bb841d --- /dev/null +++ b/clover/cloverctl/src/cloverctl/yaml/lbv1.yaml @@ -0,0 +1,9 @@ +server_port: "9180" +server_name: "http-lb-v1" +lb_name: "http-lb-v1.default" +lb_group: "cloverlb" +lb_path: "/" +lb_list: + - url: "clover-server1:9180" + - url: "clover-server2:9180" + - url: "clover-server3:9180" diff --git a/clover/cloverctl/src/cloverctl/yaml/lbv2.yaml b/clover/cloverctl/src/cloverctl/yaml/lbv2.yaml new file mode 100644 index 0000000..7df9376 --- /dev/null +++ b/clover/cloverctl/src/cloverctl/yaml/lbv2.yaml @@ -0,0 +1,8 @@ +server_port: "9180" +server_name: "http-lb-v2" +lb_name: "http-lb-v2.default" +lb_group: "cloverlb" +lb_path: "/" +lb_list: + - url: "clover-server4:9180" + - url: "clover-server5:9180" 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" |