diff options
| author | Luke Hoersten <[email protected]> | 2020-05-03 12:57:47 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-05-03 12:57:47 -0500 |
| commit | 6226b1632a1bae8cce7dcbc10e759cea5b53ec72 (patch) | |
| tree | 5c98fea0f408e93d2d42dc38a4bc3f23bfeaadd1 /writefreely/templates | |
| parent | 840fecf2edf2d94f380017a7e5f197e4bf72bb35 (diff) | |
Completed writefreely role
Diffstat (limited to 'writefreely/templates')
| -rw-r--r-- | writefreely/templates/config.ini.j2 | 49 | ||||
| -rw-r--r-- | writefreely/templates/[email protected] (renamed from writefreely/templates/writefreely.service.j2) | 5 |
2 files changed, 41 insertions, 13 deletions
diff --git a/writefreely/templates/config.ini.j2 b/writefreely/templates/config.ini.j2 index 59eb224..bb5fe7f 100644 --- a/writefreely/templates/config.ini.j2 +++ b/writefreely/templates/config.ini.j2 @@ -1,44 +1,71 @@ [server] hidden_host = -port = {{writefreely_server_port}} +port = {{writefreely_port}} bind = localhost tls_cert_path = tls_key_path = -autocert = true +autocert = false templates_parent_dir = static_parent_dir = pages_parent_dir = keys_parent_dir = +hash_seed = [database] type = sqlite3 -filename = {{writefreely_db_name}}.db +filename = writefreely.db username = password = -database = +database = writefreely host = localhost port = 3306 [app] site_name = {{writefreely_site_name}} -site_description = {{writefreely_site_desc}} -host = {{writefreely_site_host}} +site_description = +host = {{writefreely_url}} theme = write editor = disable_js = false webfonts = true -landing = +landing = /read simple_nav = false wf_modesty = false chorus = false +forest = false disable_drafts = false -single_user = true +single_user = false open_registration = false min_username_len = 3 max_blogs = 1 federation = true public_stats = true private = false -local_timeline = false -user_invites = -default_visibility = +local_timeline = true +user_invites = admin +default_visibility = public +update_checks = 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 = diff --git a/writefreely/templates/writefreely.service.j2 b/writefreely/templates/[email protected] index 0515872..bf0d03b 100644 --- a/writefreely/templates/writefreely.service.j2 +++ b/writefreely/templates/[email protected] @@ -3,9 +3,10 @@ Description=WriteFreely %I Instance After=syslog.target network.target [Service] -WorkingDirectory=/run/writefreely/%i -ExecStart=/usr/local/bin/writefreely -c /etc/writefreely/%i.conf +WorkingDirectory={{writefreely_dir}}/%i/ +ExecStart=/usr/local/bin/writefreely Restart=always +User={{writefreely_user}} [Install] WantedBy=multi-user.target |
