version: 1
log:
level: debug
audit_events: none
ignored_audit_events: []
app:
port: 8000
grpc:
port: 8001
metrics_port: 9000
profiler: false
identity_proxy_header: X-Frontier-Email
resources_config_path: file:///tmp/resources_config\
resources_config_path_secret: env://TEST_RESOURCE_CONFIG_SECRET
cors:
allowed_origins:
- "https://example.com"
allowed_methods:
- POST
- GET
- PUT
- PATCH
- DELETE
allowed_headers:
- Authorization
exposed_headers:
- Content-Type
authentication:
session:
hash_secret_key: "hash-secret-should-be-32-chars--"
block_secret_key: "block-secret-should-be-32-chars-"
domain: ""
same_site: "lax"
secure: false
validity: "720h"
token:
rsa_path: ""
rsa_base64: ""
iss: "http://localhost.frontier"
validity: "1h"
claims:
add_org_ids: true
add_user_email: true
callback_urls: ["http://localhost:8000/v1beta1/auth/callback"]
authorized_redirect_urls: []
oidc_config:
google:
client_id: "xxxxx.apps.googleusercontent.com"
client_secret: "xxxxx"
issuer_url: "https://accounts.google.com"
validity: "10m"
mail_otp:
subject: "Frontier - Login Link"
body: "Please copy/paste the OneTimePassword in login form.<h2>{{.Otp}}</h2>This code will expire in 15 minutes."
validity: 15m
mail_link:
subject: "Frontier Login - One time link"
body: "Click on the following link or copy/paste the url in browser to login.<br><h2><a href='{{.Link}}' target='_blank'>Login</a></h2><br>Address: {{.Link}} <br>This link will expire in 15 minutes."
validity: 15m
admin:
users: []
mailer:
smtp_host: smtp.example.com
smtp_port: 587
smtp_username: "username"
smtp_password: "password"
smtp_insecure: true
headers:
from: "username@acme.org"
webhook:
encryption_key: "encryption-key-should-be-32-chars--"
db:
driver: postgres
url: postgres://frontier:@localhost:5432/frontier?sslmode=disable
max_query_timeout: 500ms
spicedb:
host: spicedb.localhost
pre_shared_key: randomkey
port: 50051
consistency: "best_effort"
check_trace: false
billing:
stripe_key: ""
stripe_auto_tax: false
stripe_webhook_secrets: []
plans_path: ""
default_currency: ""
customer:
auto_create_with_org: true
default_plan: ""
default_offline: false
onboard_credits_with_org: 0
credit_overdraft_product: ""
plan_change:
proration_behavior: "create_prorations"
immediate_proration_behavior: "create_prorations"
collection_method: "charge_automatically"
product:
seat_change_behavior: "exact"
refresh_interval:
customer: 1m
subscription: 1m
invoice: 5m
checkout: 1m