Files
adamantium/config/settings.rb

33 lines
729 B
Ruby

# frozen_string_literal: true
require "adamantium/types"
module Adamantium
class Settings < Hanami::Settings
# Infrastructure
setting :database_url
# Site details
setting :site_name
## ---- Micropub ----
# Site details
setting :micropub_site_id
setting :micropub_site_name
setting :micropub_site_url
# Auth
setting :micropub_pub_key, default: nil
# TODO: add other auth methods here
# Micropub endpoints
setting :micropub_media_endpoint, default: "", constructor: Types::Params::String
setting :micropub_authorization_endpoint
setting :micropub_token_endpoint
setting :mastodon_token, default: nil
setting :mastodon_server, default: nil
end
end