mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 13:58:08 +00:00
create writefreely
This commit is contained in:
parent
d39897e834
commit
772eb9f5d7
3 changed files with 115 additions and 0 deletions
1
writefreely/.gitignore
vendored
Normal file
1
writefreely/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
data
|
12
writefreely/compose.yml
Normal file
12
writefreely/compose.yml
Normal file
|
@ -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
|
102
writefreely/config.ini
Normal file
102
writefreely/config.ini
Normal file
|
@ -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 =
|
Loading…
Add table
Reference in a new issue