Commit abefc14f authored by root's avatar root

Include bugfixes for OnlyOffice

parent 2d0d978c
...@@ -190,11 +190,19 @@ bind_port_for_http: ...@@ -190,11 +190,19 @@ bind_port_for_http:
- pattern: return res; - pattern: return res;
- repl: return resMax; - repl: return resMax;
/etc/onlyoffice/documentserver/default.json:
change_default_port:
file.replace: file.replace:
- name: /etc/onlyoffice/documentserver/default.json
- pattern: '"port": 8080' - pattern: '"port": 8080'
- repl: '"port": 8081' - repl: '"port": 8081'
change_ssl_verify:
file.replace:
- name: /etc/onlyoffice/documentserver/default.json
- pattern: '"rejectUnauthorized": true'
- repl: '"rejectUnauthorized": false'
create_nginx_user: create_nginx_user:
user.present: user.present:
- name: nginx - name: nginx
...@@ -209,7 +217,8 @@ create_nginx_user: ...@@ -209,7 +217,8 @@ create_nginx_user:
- file: /etc/nginx/includes/onlyoffice-http.conf - file: /etc/nginx/includes/onlyoffice-http.conf
- file: /etc/nginx/nginx.conf - file: /etc/nginx/nginx.conf
- file: /var/www/onlyoffice/documentserver/server/Common/sources/license.js - file: /var/www/onlyoffice/documentserver/server/Common/sources/license.js
- file: /etc/onlyoffice/documentserver/default.json - file: change_default_port
- file: change_ssl_verify
- file: /etc/nginx/conf.d/ds.conf - file: /etc/nginx/conf.d/ds.conf
- require: - require:
- sls: redis - sls: redis
......
...@@ -85,6 +85,14 @@ allow_http_network_connections: ...@@ -85,6 +85,14 @@ allow_http_network_connections:
- name: setsebool -P httpd_can_network_connect on - name: setsebool -P httpd_can_network_connect on
- onlyif: getsebool httpd_can_network_connect | grep -q off - onlyif: getsebool httpd_can_network_connect | grep -q off
{% for service in ['http','https'] %}
allow_firewalld_{{service}}_service:
cmd.run:
- name: firewall-cmd --add-service={{service}} --permanent
- onlyif: firewall-cmd --state
- unless: firewall-cmd --list-services | grep -q {{service}}
{% endfor %}
{% else %} {% else %}
disable_default_site: disable_default_site:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment