fixed graalvm read error
This commit is contained in:
parent
145c1baf05
commit
f61ea8d039
4 changed files with 49 additions and 1 deletions
|
@ -39,6 +39,6 @@
|
|||
"--report-unsupported-elements-at-runtime"
|
||||
"--initialize-at-build-time"
|
||||
"-jar" "target/uberjar/k8s-mastodon-bot-standalone.jar"
|
||||
"-H:IncludeResources=src/main/resources/.*"
|
||||
"-H:ResourceConfigurationFiles=resource-config.json"
|
||||
"-H:Log=registerResource"
|
||||
"-H:Name=target/graalvm/${:name}"]})
|
||||
|
|
8
resource-config.json
Normal file
8
resource-config.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"resources": {
|
||||
"includes": [
|
||||
{"pattern": ".*.edn"},
|
||||
{"pattern": ".*.yaml"}
|
||||
]
|
||||
}
|
||||
}
|
14
src/main/resources/auth.edn
Normal file
14
src/main/resources/auth.edn
Normal file
|
@ -0,0 +1,14 @@
|
|||
{:auth {;; add Twitter config to mirror Twitter accounts
|
||||
:twitter {:consumer_key "XXXX"
|
||||
:consumer_secret "XXXX"
|
||||
:access_token_key "XXXX"
|
||||
:access_token_secret "XXXX"}
|
||||
:mastodon {:access_token "XXXX"
|
||||
;; account number you see when you log in and go to your profile
|
||||
;; e.g: https://mastodon.social/web/accounts/294795
|
||||
:account-id "XXXX"
|
||||
:api_url "https://botsin.space/api/v1/"}
|
||||
:tumblr {:consumer_key "XXXX"
|
||||
:consumer_secret "XXXX"
|
||||
:token "XXXX"
|
||||
:token_secret "XXXX"}}}
|
26
src/main/resources/config.edn
Normal file
26
src/main/resources/config.edn
Normal file
|
@ -0,0 +1,26 @@
|
|||
{:transform [{:source {:source-type :twitter
|
||||
;; optional, defaults to false
|
||||
:include-replies? false
|
||||
;; optional, defaults to false
|
||||
:include-rts? false
|
||||
;; Replace Twitter links by Nitter
|
||||
:nitter-urls? false
|
||||
;; accounts you wish to mirror
|
||||
:accounts ["arstechnica" "WIRED"]}
|
||||
:target {:target-type :mastodon
|
||||
;; optional flag specifying wether the name of the account
|
||||
;; will be appended in the post, defaults to false
|
||||
:append-screen-name? false
|
||||
;; optional visibility flag: direct, private, unlisted, public
|
||||
;; defaults to public
|
||||
:visibility "unlisted"
|
||||
;; optional boolean to mark content as sensitive. Defaults to true.
|
||||
:sensitive? true
|
||||
;; optional boolean defaults to false
|
||||
;; only sources containing media will be posted when set to true
|
||||
:media-only? true
|
||||
;; optional limit for the post length. Defaults to 300.
|
||||
:max-post-length 300
|
||||
;; optional signature for posts. Defaults to "not present".
|
||||
:signature "#newsbot"}}]
|
||||
:auth{}}
|
Loading…
Reference in a new issue