2021-02-26 15:37:37 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>k8s-mastodon-bot</title>
|
2021-03-05 13:51:10 +00:00
|
|
|
<link href="https://domaindrivenarchitecture.org/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="https://domaindrivenarchitecture.org/css/fonts/fontawesome/fontawesome.css" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="https://domaindrivenarchitecture.org/css/custom.css" rel="stylesheet" type="text/css" />
|
2021-02-26 15:37:37 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2021-03-05 13:51:10 +00:00
|
|
|
<div class="container jumbotron">
|
2021-03-19 13:16:08 +00:00
|
|
|
<form class="needs-validation" id="form">
|
2021-03-05 13:51:10 +00:00
|
|
|
<label for="config" class="form-label">Your config.edn:</label>
|
|
|
|
<textarea name="config" id="config" class="form-control" rows="15">
|
2021-02-26 15:37:37 +00:00
|
|
|
{: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"]}
|
2021-03-17 18:31:12 +00:00
|
|
|
: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 {}}}
|
2021-03-19 13:16:08 +00:00
|
|
|
</textarea>
|
|
|
|
<div class="invalid-feedback"><pre id="config-validation"></pre></div>
|
|
|
|
<br><br>
|
2021-03-05 13:51:10 +00:00
|
|
|
|
|
|
|
<label for="auth" class="form-label">Your auth.edn:</label>
|
|
|
|
<textarea name="auth" id="auth" class="form-control" rows="15">
|
2021-02-26 15:37:37 +00:00
|
|
|
{: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"}}}
|
2021-03-19 14:06:09 +00:00
|
|
|
</textarea>
|
|
|
|
<div class="invalid-feedback"><pre id="auth-validation"></pre></div>
|
|
|
|
<br><br>
|
2021-03-05 13:51:10 +00:00
|
|
|
<button type="button" id="generate-button" class="btn btn-primary">
|
|
|
|
Generate k8s yaml
|
2021-03-19 14:53:47 +00:00
|
|
|
</button></form><br><br>
|
2021-03-05 13:51:10 +00:00
|
|
|
<div id="k8s-mastodon-bot-output">
|
|
|
|
<label for="output" class="form-label">Your k8s deployment.yaml:</label>
|
|
|
|
<textarea name="output" id="output" class="form-control" rows="15">
|
2021-02-26 15:37:37 +00:00
|
|
|
</textarea>
|
2021-03-05 13:51:10 +00:00
|
|
|
</div>
|
2021-03-19 14:53:47 +00:00
|
|
|
|
2021-02-26 15:37:37 +00:00
|
|
|
</div>
|
|
|
|
<script src="js/main.js"></script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|