-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from Flexiana/yogthos-config-update
update yougthous config, bump version (0.4.0-rc1), rename config keys to `:xiana/...`
- Loading branch information
Showing
57 changed files
with
434 additions
and
615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
{:rules | ||
{:whitespace {:remove-surrounding? true | ||
:remove-trailing? true | ||
:insert-missing? true} | ||
:blank-lines {:padding-lines 1 | ||
:max-consecutive 1 | ||
:insert-padding true | ||
:trim-consecutive? true} | ||
:types {:enabled? false} | ||
:functions {:enabled? false} | ||
:eof-new-line {:enabled? true} | ||
:namespaces {:enabled? true | ||
:break-libs true | ||
:indent-size 2}}} | ||
{:files {:ignore #{"checkouts" "target"} | ||
:extensions #{"clj" "edn"}} | ||
:rules {:whitespace {:remove-surrounding? true | ||
:remove-trailing? true | ||
:insert-missing? true} | ||
:blank-lines {:padding-lines 1 | ||
:max-consecutive 1 | ||
:insert-padding true | ||
:trim-consecutive? true} | ||
:types {:enabled? false} | ||
:functions {:enabled? false} | ||
:eof-new-line {:enabled? true} | ||
:namespaces {:enabled? true | ||
:break-libs true | ||
:indent-size 2}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
{:framework.db.storage/postgresql {:port 5432 | ||
:dbname "framework" | ||
:host "localhost" | ||
:dbtype "postgresql" | ||
:user "postgres" | ||
:password "postgres"} | ||
:framework.app/web-server {:port 3000 | ||
:join? false} | ||
:framework.db.storage/migration {:store :database | ||
:migration-dir "resources/migrations" | ||
:init-in-transaction? false | ||
:migration-table-name "migrations"} | ||
:framework.app/emails {:host "" | ||
:user "" | ||
:pass "" | ||
:tls true | ||
:port 587 | ||
:from ""} | ||
:framework.app/auth {:hash-algorithm :bcrypt ;; Available values: :bcrypt, :scrypt, and :pbkdf2 | ||
:bcrypt-settings {:work-factor 11} | ||
:scrypt-settings {:cpu-cost 32768 ;; Must be a power of 2 | ||
:memory-cost 8 | ||
:parallelization 1} | ||
:pbkdf2-settings {:type :sha1 ;; Available values: :sha1 and :sha256 | ||
:iterations 100000}}} | ||
{:xiana/postgresql {:port 5432 | ||
:dbname "framework" | ||
:host "localhost" | ||
:dbtype "postgresql" | ||
:user "postgres" | ||
:password "postgres"} | ||
:xiana/web-server {:port 3000 | ||
:join? false} | ||
:xiana/migration {:store :database | ||
:migration-dir "resources/migrations" | ||
:init-in-transaction? false | ||
:migration-table-name "migrations"} | ||
:xiana/emails {:host "" | ||
:user "" | ||
:pass "" | ||
:tls true | ||
:port 587 | ||
:from ""} | ||
:xiana/auth {:hash-algorithm :bcrypt ; Available values: :bcrypt, :scrypt, and :pbkdf2 | ||
:bcrypt-settings {:work-factor 11} | ||
:scrypt-settings {:cpu-cost 32768 ; Must be a power of 2 | ||
:memory-cost 8 | ||
:parallelization 1} | ||
:pbkdf2-settings {:type :sha1 ; Available values: :sha1 and :sha256 | ||
:iterations 100000}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
{:framework.db.storage/postgresql {:image-name "postgres:14-alpine" | ||
:port 5432 | ||
:dbname "framework" | ||
:host "localhost" | ||
:dbtype "postgresql" | ||
:user "postgres" | ||
:password "postgres"} | ||
:framework.app/web-server {:port 3333 | ||
:join? false} | ||
:framework.db.storage/migration {:store :database | ||
:migration-dir "resources/migrations" | ||
:init-in-transaction? false | ||
:migration-table-name "migrations"} | ||
:framework.app/emails {:host "" | ||
:user "" | ||
:pass "" | ||
:tls true | ||
:port 587 | ||
:from ""} | ||
:framework.app/auth {:hash-algorithm :bcrypt ;; Available values: :bcrypt, :scrypt, and :pbkdf2 | ||
:bcrypt-settings {:work-factor 11} | ||
:scrypt-settings {:cpu-cost 32768 ;; Must be a power of 2 | ||
:memory-cost 8 | ||
:parallelization 1} | ||
:pbkdf2-settings {:type :sha1 ;; Available values: :sha1 and :sha256 | ||
:iterations 100000}}} | ||
{:xiana/postgresql {:image-name "postgres:14-alpine" | ||
:port 5432 | ||
:dbname "framework" | ||
:host "localhost" | ||
:dbtype "postgresql" | ||
:user "postgres" | ||
:password "postgres"} | ||
:xiana/web-server {:port 3333 | ||
:join? false} | ||
:xiana/migration {:store :database | ||
:migration-dir "resources/migrations" | ||
:init-in-transaction? false | ||
:migration-table-name "migrations"} | ||
:xiana/emails {:host "" | ||
:user "" | ||
:pass "" | ||
:tls true | ||
:port 587 | ||
:from ""} | ||
:xiana/auth {:hash-algorithm :bcrypt ; Available values: :bcrypt, :scrypt, and :pbkdf2 | ||
:bcrypt-settings {:work-factor 11} | ||
:scrypt-settings {:cpu-cost 32768 ; Must be a power of 2 | ||
:memory-cost 8 | ||
:parallelization 1} | ||
:pbkdf2-settings {:type :sha1 ; Available values: :sha1 and :sha256 | ||
:iterations 100000}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*/.shadow-cljs/ | ||
*/node_modules/ | ||
*/resources/public/js/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,59 @@ | ||
{:framework.db.storage/postgresql {:port 5433 | ||
:dbname "acl" | ||
:host "localhost" | ||
:dbtype "postgresql" | ||
:user "postgres" | ||
:password "postgres"} | ||
{:xiana/postgresql {:port 5433 | ||
:dbname "acl" | ||
:host "localhost" | ||
:dbtype "postgresql" | ||
:user "postgres" | ||
:password "postgres"} | ||
|
||
:framework.db.storage/migration {:store :database | ||
:migration-dir "resources/migrations" | ||
:init-in-transaction? false | ||
:migration-table-name "migrations"} | ||
:xiana/migration {:store :database | ||
:migration-dir "resources/migrations" | ||
:init-in-transaction? false | ||
:migration-table-name "migrations"} | ||
|
||
:framework.app/ring {:defaults {:params {:urlencoded true | ||
:multipart true | ||
:nested true | ||
:keywordize true} | ||
:cookies true | ||
:session {:flash true | ||
:cookie-attrs | ||
{:http-only true, :same-site :strict}} | ||
:security {:anti-forgery true | ||
:xss-protection | ||
{:enable? true, :mode :block} | ||
:frame-options :sameorigin | ||
:content-type-options :nosniff} | ||
:static {:resources "public"} | ||
:responses {:not-modified-responses true | ||
:absolute-redirects true | ||
:content-types true}}} | ||
|
||
:framework.app/web-server {:port 3000 | ||
:join? false} | ||
:framework.app/role-set {:resources [:posts :comments :users] | ||
:actions {:posts [:read :create :update :delete :comment :react] | ||
:comments [:read :create :update :delete :reply :react] | ||
:users [:read :create :update :delete :ban]} | ||
:roles {:guest {:posts {:read :all} | ||
:comments {:read :all}} | ||
:member {:posts {:read :all | ||
:comment :friends | ||
:react :friends | ||
:create :own | ||
:update :own | ||
:delete :own} | ||
:comments {:read :all | ||
:create :own | ||
:update :own | ||
:delete :own | ||
:reply :friends | ||
:react :friends} | ||
:users {:read :all | ||
:create :own | ||
:update :own | ||
:delete :own}} | ||
:staff {:posts {:read :all | ||
:delete :all} | ||
:comments {:read :all | ||
:delete :all} | ||
:users {:read :all | ||
:delete :ban}} | ||
:superuser {:posts {:read :all | ||
:comment :all | ||
:react :all | ||
:create :all | ||
:update :all | ||
:delete :all} | ||
:comments {:read :all | ||
:create :all | ||
:update :all | ||
:delete :all | ||
:reply :all | ||
:react :all} | ||
:users {:read :all | ||
:create :all | ||
:update :all | ||
:delete :all | ||
:ban :all}}}}} | ||
:xiana/web-server {:port 3000 | ||
:join? false} | ||
:xiana/role-set {:resources [:posts :comments :users] | ||
:actions {:posts [:read :create :update :delete :comment :react] | ||
:comments [:read :create :update :delete :reply :react] | ||
:users [:read :create :update :delete :ban]} | ||
:roles {:guest {:posts {:read :all} | ||
:comments {:read :all}} | ||
:member {:posts {:read :all | ||
:comment :friends | ||
:react :friends | ||
:create :own | ||
:update :own | ||
:delete :own} | ||
:comments {:read :all | ||
:create :own | ||
:update :own | ||
:delete :own | ||
:reply :friends | ||
:react :friends} | ||
:users {:read :all | ||
:create :own | ||
:update :own | ||
:delete :own}} | ||
:staff {:posts {:read :all | ||
:delete :all} | ||
:comments {:read :all | ||
:delete :all} | ||
:users {:read :all | ||
:delete :ban}} | ||
:superuser {:posts {:read :all | ||
:comment :all | ||
:react :all | ||
:create :all | ||
:update :all | ||
:delete :all} | ||
:comments {:read :all | ||
:create :all | ||
:update :all | ||
:delete :all | ||
:reply :all | ||
:react :all} | ||
:users {:read :all | ||
:create :all | ||
:update :all | ||
:delete :all | ||
:ban :all}}}}} |
Oops, something went wrong.