forked from infra/ansible
hackmd: fix owner, persistent upload path, allow anon edits
This commit is contained in:
parent
22c1b0d469
commit
67d4340ba6
@ -22,9 +22,15 @@
|
||||
- python-psycopg2
|
||||
|
||||
- name: Unpack hackmd
|
||||
unarchive: src=https://github.com/hackmdio/codimd/archive/{{ hackmd_version }}.tar.gz dest=/opt owner=hackmd remote_src=yes creates=/opt/codimd-{{ hackmd_version }}
|
||||
unarchive: src=https://github.com/hackmdio/codimd/archive/{{ hackmd_version }}.tar.gz dest=/opt owner=hackmd group=hackmd remote_src=yes creates=/opt/codimd-{{ hackmd_version }}
|
||||
register: hackmd_unarchive
|
||||
|
||||
- name: Create hackmd upload path
|
||||
file: path=/opt/codimd/uploads state=directory recurse=yes owner=hackmd group=hackmd
|
||||
|
||||
- name: Link hackmd upload path
|
||||
file: path=/opt/codimd/uploads dest=/opt/codimd-{{ hackmd_version }}/public/uploads state=link owner=hackmd group=hackmd
|
||||
|
||||
- name: Setup hackmd
|
||||
command: bin/setup chdir=/opt/codimd-{{ hackmd_version }} creates=/opt/codimd-{{ hackmd_version }}/config.json
|
||||
become: true
|
||||
|
@ -3,6 +3,7 @@
|
||||
"domain": "{{ hackmd_domain }}",
|
||||
"protocolUseSSL": true,
|
||||
"allowAnonymous": false,
|
||||
"allowAnonymousEdits": true,
|
||||
"allowFreeURL": true,
|
||||
"sessionSecret": "{{ hackmd_secret }}",
|
||||
"hsts": {
|
||||
|
Loading…
Reference in New Issue
Block a user