aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStaffan Olsson <staffan@repos.se>2017-12-05 07:54:24 +0100
committerStaffan Olsson <staffan@repos.se>2017-12-05 07:54:24 +0100
commit4d5815ce9d6eb55770d92931d582eeb57f6776dd (patch)
tree2c88811ab3d438b9ae9c14d75612b2b3d7c8883f
parent465a5052b629cfca67c6e82926e5f51c23f307d4 (diff)
downloadkubernetes-kafka-4d5815ce9d6eb55770d92931d582eeb57f6776dd.tar.gz
kubernetes-kafka-4d5815ce9d6eb55770d92931d582eeb57f6776dd.tar.bz2
kubernetes-kafka-4d5815ce9d6eb55770d92931d582eeb57f6776dd.zip
Adds CORS headers for REST Proxy, and clean up
-rw-r--r--confluent-rest/confluent-config.yml39
1 files changed, 4 insertions, 35 deletions
diff --git a/confluent-rest/confluent-config.yml b/confluent-rest/confluent-config.yml
index dd77c95..96e211c 100644
--- a/confluent-rest/confluent-config.yml
+++ b/confluent-rest/confluent-config.yml
@@ -5,51 +5,20 @@ metadata:
apiVersion: v1
data:
schema-registry.properties: |-
- # Copyright 2014 Confluent Inc.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
-
listeners=http://0.0.0.0:80
kafkastore.bootstrap.servers=PLAINTEXT://bootstrap.kafka:9092
kafkastore.topic=_schemas
debug=false
kafka-rest.properties: |-
- ##
- # Copyright 2015 Confluent Inc.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- ##
-
#id=kafka-rest-test-server
listeners=http://0.0.0.0:80
bootstrap.servers=PLAINTEXT://bootstrap.kafka:9092
schema.registry.url=http://schemas.kafka:80
- #
- # Configure interceptor classes for sending consumer and producer metrics to Confluent Control Center
- # Make sure that monitoring-interceptors-<version>.jar is on the Java class path
- #consumer.interceptor.classes=io.confluent.monitoring.clients.interceptor.MonitoringConsumerInterceptor
- #producer.interceptor.classes=io.confluent.monitoring.clients.interceptor.MonitoringProducerInterceptor
+
+ # https://github.com/Landoop/kafka-topics-ui#common-issues
+ access.control.allow.methods=GET,POST,PUT,DELETE,OPTIONS
+ access.control.allow.origin=*
log4j.properties: |-
log4j.rootLogger=INFO, stdout