Initial commit

This commit is contained in:
2023-01-27 22:55:09 +11:00
commit 833f3ea8b2
130 changed files with 5637 additions and 0 deletions

29
config/settings.rb Normal file
View File

@@ -0,0 +1,29 @@
# 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
end
end