180 lines
5.3 KiB
Plaintext
180 lines
5.3 KiB
Plaintext
# By default, this should live in one of:
|
|
# ~/.poppy/poppy.conf
|
|
# /etc/poppy/poppy.conf
|
|
|
|
[DEFAULT]
|
|
# Show more verbose log output (sets INFO log level output)
|
|
;verbose = False
|
|
# Datacenter in which the API is hosted.
|
|
datacenter = DC1
|
|
|
|
# Show debugging output in logs (sets DEBUG log level output)
|
|
;debug = False
|
|
|
|
# Log to this file
|
|
log_file = poppy.log
|
|
log_config_append = etc/logging.conf
|
|
|
|
project_id_in_url = False
|
|
|
|
;auth_strategy =
|
|
|
|
# ================= Syslog Options ============================
|
|
|
|
# Send logs to syslog (/dev/log) instead of to file specified
|
|
# by `log_file`
|
|
;use_syslog = False
|
|
|
|
# Facility to use. If unset defaults to LOG_USER.
|
|
;syslog_log_facility = LOG_LOCAL0
|
|
|
|
# ================= Driver Options ============================
|
|
|
|
[drivers]
|
|
# Transport driver module (e.g., falcon, pecan)
|
|
transport = pecan
|
|
|
|
# Manager driver module (e.g. default)
|
|
manager = default
|
|
|
|
# Storage driver module (e.g., mongodb, sqlite, cassandra)
|
|
storage = cassandra
|
|
|
|
# Provider modules list (a list of comma separated provider module list)
|
|
providers = fastly
|
|
|
|
# Notification modules list (a list of comma separated notification module list)
|
|
notifications = mailgun
|
|
|
|
# DNS driver module (e.g. default, designate, rackspace)
|
|
dns = default
|
|
|
|
# distributed_task driver module (e.g. TaskFlow, Celery, OsloMessaging)
|
|
distributed_task = taskflow
|
|
|
|
[drivers:transport:limits]
|
|
max_services_per_page = 20
|
|
|
|
[drivers:transport:pecan]
|
|
bind = 0.0.0.0
|
|
port = 8888
|
|
|
|
[drivers:storage:cassandra]
|
|
archive_on_delete = True
|
|
# Comma-separated list of hosts (Example: cass01,cass02,cass03)
|
|
cluster = localhost
|
|
;port = 9042
|
|
ssl_enabled = False
|
|
ssl_ca_certs = </absolute/path/to/cassandra.crt>
|
|
auth_enabled = False
|
|
username = cassandra_username
|
|
password = cassandra_password
|
|
# Either RoundRobinPolicy or DCAwareRoundRobinPolicy. DCAwareRoundRobinPolicy
|
|
# requires the datacenter option in [DEFAULT] to be configured.
|
|
load_balance_strategy = RoundRobinPolicy
|
|
consistency_level = ONE
|
|
migrations_consistency_level = LOCAL_QUORUM
|
|
max_schema_agreement_wait = 30
|
|
keyspace = poppy
|
|
# Replication strategy to use for the keyspace. This value is plugged into
|
|
# `map` as show in the syntax here: http://www.datastax.com/documentation/cql/3
|
|
# .1/cql/cql_reference/create_keyspace_r.html
|
|
replication_strategy = class:SimpleStrategy, replication_factor:1
|
|
# Path to directory containing CQL migration scripts
|
|
migrations_path = <poppy_code_path>/poppy/storage/cassandra/migrations
|
|
|
|
[drivers:distributed_task:taskflow]
|
|
jobboard_backend_type = zookeeper
|
|
persistent_backend_type = zookeeper
|
|
jobboard_backend_host = <your_transport_server(s)>
|
|
jobboard_backend_port = <your_transport_port>
|
|
persistent_backend_host = <your_transport_server(s)>
|
|
persistent_backend_port = <your_transport_port>
|
|
|
|
[driver:dns]
|
|
retries = 5
|
|
min_backoff_range = 20
|
|
max_backoff_range = 30
|
|
|
|
[drivers:dns:rackspace]
|
|
username = "<operator_username>"
|
|
api_key = "<operator_api_key>"
|
|
use_shards = True
|
|
num_shards = 400
|
|
shard_prefix = "cdn"
|
|
shared_ssl_num_shards = 5
|
|
shared_ssl_shard_prefix = "scdn"
|
|
shared_ssl_domain_suffix = "secure.poppycdn.net"
|
|
url = "poppycdn.net"
|
|
# link to page to be directed to when a service is disabled
|
|
url_404 = notfound.com
|
|
# You email associated with DNS, for notifications
|
|
email = "your@email.com"
|
|
auth_endpoint = ""
|
|
timeout = 30
|
|
delay = 1
|
|
|
|
|
|
[drivers:provider]
|
|
default_cache_ttl = 86400
|
|
|
|
[drivers:notification:mailgun]
|
|
mailgun_api_key = "<operator_api_key>"
|
|
mailgun_request_url = "https://api.mailgun.net/v2/{0}/events"
|
|
sand_box = "<your_sand_box_domain>"
|
|
from_address = "<your_send_from_email_address>"
|
|
recipients="<a_list_of_email_recipient>"
|
|
|
|
[drivers:provider:fastly]
|
|
apikey = "MYAPIKEY"
|
|
# scheme = "https"
|
|
# host = "api.fastly.com"
|
|
scheme = "http"
|
|
host = "dockerhost:8900/fastly"
|
|
|
|
[drivers:provider:maxcdn]
|
|
alias = "MYALIAS"
|
|
consumer_secret = "MYCONSUMER_SECRET"
|
|
consumer_key = "MYCONSUMERKEY"
|
|
|
|
[drivers:provider:cloudfront]
|
|
aws_access_key_id = "MY_AWS_ACCESS_KEY_ID"
|
|
aws_secret_access_key = "MY_AWS_SECRET_ACCESS_KEY"
|
|
|
|
[drivers:provider:akamai]
|
|
policy_api_client_token = "MY_POLICY_API_CLIENT_TOKEN"
|
|
policy_api_client_secret = "MY_POLICY_API_CLIENT_SECRET"
|
|
policy_api_access_token = "MY_POLICY_API_ACCESS_TOKEN"
|
|
policy_api_base_url = "MY_POLICY_API_BASE_URL"
|
|
ccu_api_client_token = "MY_CCU_API_CLIENT_TOKEN"
|
|
ccu_api_client_secret = "MY_CCU_API_CLIENT_SECRET"
|
|
ccu_api_access_token = "MY_CCU_API_ACCESS_TOKEN"
|
|
ccu_api_base_url = "MY_CCU_API_BASE_URL"
|
|
akamai_access_url_link = "MY_ACCESS_URL_LINK"
|
|
akamai_https_access_url_suffix = "MY_HTTPS_ACCESS_URL_SUFFIX"
|
|
akamai_http_config_number = 'MY_AKAMAI_HTTP_CONFIG_NUMBER'
|
|
akamai_https_shared_config_number = 'MY_AKAMAI_HTTPS_CONFIG_SHARED_NUMBER'
|
|
akamai_https_san_config_numbers = 'MY_AKAMAI_HTTPS_CONFIG_SAN_NUMBER'
|
|
akamai_https_custom_config_numbers = 'MY_AKAMAI_HTTPS_CONFIG_CUSTOM_NUMBER'
|
|
san_cert_cnames = "MY_SAN_CERT_LIST"
|
|
san_cert_hostname_limit = "MY_SAN_HOSTNAMES_LMIT"
|
|
contract_id = "MY_CONTRACT_ID"
|
|
group_id = "MY_GROUP_ID"
|
|
property_id = "MY_PROPERTY_ID"
|
|
storage_backend_type = zookeeper
|
|
storage_backend_host = <your_transport_server(s)>
|
|
storage_backend_port = <your_transport_port>
|
|
|
|
[drivers:notification:mailgun]
|
|
mailgun_api_key = "<operator_api_key>"
|
|
mailgun_request_url = "https://api.mailgun.net/v2/{0}/events"
|
|
sand_box = "<your_sand_box_domain>"
|
|
from_address = "<your_send_from_email_address>"
|
|
recipients="<a_list_of_email_recipient>"
|
|
retry_send=5
|
|
|
|
[log_delivery]
|
|
identity_url = OPENSTACK_IDENTITY_URL
|
|
preferred_dcs = DC1,DC2
|
|
container_name = .CDN_ACCESS_LOGS
|