| # |
| # 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. |
| # |
| |
| spring.cloud.refresh.refreshable=none |
| server.port=7750 |
| |
| # configuration log |
| logging.path= |
| logging.file=pulsar-manager.log |
| |
| # DEBUG print execute sql |
| logging.level.io.streamnative=DEBUG |
| |
| mybatis.type-aliases-package=io.streamnative.pulsar.manager |
| |
| # database connection |
| |
| # SQLLite |
| #spring.datasource.driver-class-name=org.sqlite.JDBC |
| #spring.datasource.url=jdbc:sqlite:pulsar_manager.db |
| #spring.datasource.initialization-mode=always |
| #spring.datasource.schema=classpath:/META-INF/sql/sqlite-schema.sql |
| #spring.datasource.username= |
| #spring.datasource.password= |
| |
| #HerdDB JDBC Driver |
| spring.datasource.driver-class-name=herddb.jdbc.Driver |
| # HerdDB - local in memory-only |
| #spring.datasource.url=jdbc:herddb:local |
| # HerdDB - start embedded server, data persisted on local disk (directory 'dbdata'), listening on localhost:7000 |
| spring.datasource.url=jdbc:herddb:server:localhost:7000?server.start=true&server.base.dir=dbdata |
| # HerdDB - connect to standalone server at localhost:7000 |
| #spring.datasource.url=jdbc:herddb:server:localhost:7000 |
| # HerdDB - connect to cluster, uses ZooKeeper for service discovery |
| #spring.datasource.url=jdbc:herddb:zookeeper:localhost:2181/herd |
| |
| spring.datasource.schema=classpath:/META-INF/sql/herddb-schema.sql |
| spring.datasource.username=sa |
| spring.datasource.password=hdb |
| spring.datasource.initialization-mode=always |
| |
| # postgresql configuration |
| #spring.datasource.driver-class-name=org.postgresql.Driver |
| #spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/pulsar_manager |
| #spring.datasource.username=postgres |
| #spring.datasource.password=postgres |
| |
| # zuul config |
| # https://cloud.spring.io/spring-cloud-static/Dalston.SR5/multi/multi__router_and_filter_zuul.html |
| # By Default Zuul adds Authorization to be dropped headers list. Below we are manually setting it |
| zuul.sensitive-headers=Cookie,Set-Cookie |
| zuul.routes.admin.path=/admin/** |
| zuul.routes.admin.url=http://localhost:8080/admin/ |
| zuul.routes.lookup.path=/lookup/** |
| zuul.routes.lookup.url=http://localhost:8080/lookup/ |
| |
| # pagehelper plugin |
| #pagehelper.helperDialect=sqlite |
| # force 'mysql' for HerdDB, comment out for postgresql |
| pagehelper.helperDialect=mysql |
| |
| backend.directRequestBroker=true |
| backend.directRequestHost=http://localhost:8080 |
| backend.jwt.token= |
| |
| jwt.secret=dab1c8ba-b01b-11e9-b384-186590e06885 |
| jwt.sessionTime=2592000 |
| pulsar-manager.account=pulsar |
| pulsar-manager.password=pulsar |
| |
| # Optional -> SECRET, PRIVATE, default -> PRIVATE, empty -> disable auth |
| # SECRET mode -> bin/pulsar tokens create --secret-key file:///path/to/my-secret.key --subject test-user |
| # PRIVATE mode -> bin/pulsar tokens create --private-key file:///path/to/my-private.key --subject test-user |
| # Detail information: http://pulsar.apache.org/docs/en/security-token-admin/ |
| jwt.broker.token.mode= |
| jwt.broker.secret.key=file:///path/broker-secret.key |
| jwt.broker.public.key=file:///path/pulsar/broker-public.key |
| jwt.broker.private.key=file:///path/broker-private.key |
| |
| # bookie |
| bookie.host=http://localhost:8050 |
| bookie.enable=false |
| |
| redirect.scheme=http |
| redirect.host=localhost |
| redirect.port=9527 |
| |
| # Stats interval |
| # millisecond |
| insert.stats.interval=30000 |
| # millisecond |
| clear.stats.interval=300000 |
| init.delay.interval=0 |
| |
| # cluster data reload |
| cluster.cache.reload.interval.ms=60000 |