Closed ildar-ceo closed 2 years ago
Admin route support in template
<?xml version="1.1" encoding="UTF-8" ?> <template> <uid>org.bayrell.rabbitmq</uid> <name>RabbitMQ</name> <version>0.1</version> <maintainer>Ildar <ildar@bayrell.org></maintainer> <marketplace>https://cloud_os.bayrell.org/</marketplace> <link name="Main site">https://wordpress.org/</link> <license>MIT</license> <yaml> <services> <_var_service_name_> <image>docker.io/bayrell/alpine_rabbitmq:0.1</image> <hostname>{{.Service.Name}}.{{.Task.ID}}.local</hostname> <volumes>_var_service_name__data:/data</volumes> </_var_service_name_> </services> <volumes> <_var_service_name__data /> </volumes> </yaml> <variables> <variable> <name>_var_service_name_</name> <label>Service name</label> <type>string</type> </variable> </variables> <admin> <port>15672</port> <route>/</route> <nginx> location ~* /admin/services/bus_rabbitmq/api/(.*?)/(.*) { proxy_pass http://15672.bus_rabbitmq.cloud_admin.example/api/$1/%2F/$2?$query_string; include proxy_params; } location /admin/services/bus_rabbitmq/ { proxy_pass http://15672.bus_rabbitmq.cloud_admin.example/; include proxy_params; } </nginx> </admin> <modificators> <li>org.bayrell.modificator.cloud_os</li> <li>org.bayrell.modificator.deploy_hostname</li> </modificators> <patch> <name>Template patch</name> <operations></operations> </patch> </template>
Admin route support in template