mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-31 19:55:42 +02:00
Update to 2022-09-23 14:00
This commit is contained in:
@@ -19,3 +19,6 @@ oo_ds_vhost: onlyoffice-ds.{{ ansible_domain }}
|
||||
# Is auto-saving of file enabled
|
||||
# If true, files will be saved every 5 minutes
|
||||
oo_auto_save: True
|
||||
|
||||
# Secret used to protect cached files. A random one will be generated if not set
|
||||
# oo_link_secret: XXXXXXX
|
||||
|
@@ -8,6 +8,6 @@
|
||||
tags: oo
|
||||
|
||||
- name: Deploy nginx configuration
|
||||
template: src=nginx_vhost.conf.j2 dest=/etc/nginx/ansible_conf.d/32-oods.conf
|
||||
template: src=nginx_vhost.conf.j2 dest=/etc/nginx/ansible_conf.d/32-oods.conf mode=640
|
||||
notify: reload nginx
|
||||
tags: oo
|
||||
|
@@ -15,6 +15,16 @@
|
||||
- set_fact: oo_db_pass={{ rand_pass }}
|
||||
tags: oo
|
||||
|
||||
- when: oo_link_secret is not defined
|
||||
block:
|
||||
- import_tasks: ../includes/get_rand_pass.yml
|
||||
vars:
|
||||
- pass_file: /etc/onlyoffice/meta/ansible_link_secret
|
||||
- complex: False
|
||||
- pass_size: 30
|
||||
- set_fact: oo_link_secret={{ rand_pass }}
|
||||
tags: oo
|
||||
|
||||
- name: Detect installed version
|
||||
shell: rpm -q --qf "%{version}-%{release}" onlyoffice-documentserver || echo 0
|
||||
args:
|
||||
|
@@ -8,5 +8,6 @@ server {
|
||||
expires 365d;
|
||||
alias /var/www/onlyoffice/documentserver/fonts$2;
|
||||
}
|
||||
set $secure_link_secret {{ oo_link_secret }};
|
||||
include /etc/onlyoffice/documentserver/nginx/includes/ds-docservice.conf;
|
||||
}
|
||||
|
@@ -4,7 +4,8 @@
|
||||
},
|
||||
"storage": {
|
||||
"fs": {
|
||||
"folderPath": "/var/lib/onlyoffice/documentserver/App_Data/cache/files"
|
||||
"folderPath": "/var/lib/onlyoffice/documentserver/App_Data/cache/files",
|
||||
"secretString": "{{ oo_link_secret }}"
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
|
Reference in New Issue
Block a user