From 772eb9f5d790919a93499386a82899f473edf2c2 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sat, 13 Jul 2024 17:04:11 +0900 Subject: [PATCH] create writefreely --- writefreely/.gitignore | 1 + writefreely/compose.yml | 12 +++++ writefreely/config.ini | 102 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 writefreely/.gitignore create mode 100644 writefreely/compose.yml create mode 100644 writefreely/config.ini diff --git a/writefreely/.gitignore b/writefreely/.gitignore new file mode 100644 index 0000000..1269488 --- /dev/null +++ b/writefreely/.gitignore @@ -0,0 +1 @@ +data diff --git a/writefreely/compose.yml b/writefreely/compose.yml new file mode 100644 index 0000000..fe79b89 --- /dev/null +++ b/writefreely/compose.yml @@ -0,0 +1,12 @@ +services: + web: + image: "writeas/writefreely:latest" + volumes: + - "./config.ini:/go/config.ini" + - "./data:/data" # sudo chown 2:2 data + ports: + - "8080:8080" +# セットアップに必要なコマンド: +# $ cmd/writefreely/writefreely -init-db +# $ cmd/writefreely/writefreely -create-admin $USERNAME:$PASSWORD +# $ cmd/writefreely/writefreely -gen-keys diff --git a/writefreely/config.ini b/writefreely/config.ini new file mode 100644 index 0000000..774f70b --- /dev/null +++ b/writefreely/config.ini @@ -0,0 +1,102 @@ +[server] +hidden_host = +port = 8080 +bind = 0.0.0.0 +tls_cert_path = +tls_key_path = +autocert = false +templates_parent_dir = /go +static_parent_dir = +pages_parent_dir = /go +keys_parent_dir = /data +hash_seed = +gopher_port = 0 + +[database] +type = sqlite3 +filename = /data/writefreely.db +username = +password = +database = +host = localhost +port = 3306 +tls = false + +[app] +site_name = WriteFreely +site_description = A place to write freely. +host = http://localhost:8080 +theme = write +editor = +disable_js = false +webfonts = true +landing = +simple_nav = false +wf_modesty = false +chorus = false +forest = false +disable_drafts = false +single_user = true +open_registration = false +open_deletion = false +min_username_len = 3 +max_blogs = 1 +federation = true +public_stats = false +monetization = false +notes_only = false +private = false +local_timeline = false +user_invites = +default_visibility = +update_checks = false +disable_password_auth = false + +[oauth.slack] +client_id = +client_secret = +team_id = +callback_proxy = +callback_proxy_api = + +[oauth.writeas] +client_id = +client_secret = +auth_location = +token_location = +inspect_location = +callback_proxy = +callback_proxy_api = + +[oauth.gitlab] +client_id = +client_secret = +host = +display_name = +callback_proxy = +callback_proxy_api = + +[oauth.gitea] +client_id = +client_secret = +host = +display_name = +callback_proxy = +callback_proxy_api = + +[oauth.generic] +client_id = +client_secret = +host = +display_name = +callback_proxy = +callback_proxy_api = +token_endpoint = +inspect_endpoint = +auth_endpoint = +scope = +allow_disconnect = false +map_user_id = +map_username = +map_display_name = +map_email =