forked from ISTI-ansible-roles/ansible-roles
Fix the nginx includes filenames of the new onlyoffice package
This commit is contained in:
parent
9170706a03
commit
214cd1d03c
|
@ -24,8 +24,8 @@
|
||||||
template: src=local.json dest=/etc/onlyoffice/documentserver/local.json owner=root group=root mode=0444
|
template: src=local.json dest=/etc/onlyoffice/documentserver/local.json owner=root group=root mode=0444
|
||||||
|
|
||||||
- name: Install the OnlyOffice document server configuration that enables SSL
|
- name: Install the OnlyOffice document server configuration that enables SSL
|
||||||
template: src=onlyoffice-documentserver-ssl.conf dest=/etc/onlyoffice/documentserver/nginx/onlyoffice-documentserver.conf
|
template: src=onlyoffice-documentserver-ssl.conf dest=/etc/onlyoffice/documentserver/nginx/ds.conf
|
||||||
when: onlyoffice_docserver_letsencrypt_managed
|
when: onlyoffice_docserver_letsencrypt_managed | bool
|
||||||
notify: Reload nginx
|
notify: Reload nginx
|
||||||
tags: [ 'onlyoffice', 'letsencrypt', 'nginx' ]
|
tags: [ 'onlyoffice', 'letsencrypt', 'nginx' ]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
include /etc/nginx/includes/onlyoffice-http.conf;
|
include /etc/nginx/includes/http-common.conf;
|
||||||
|
|
||||||
## Normal HTTP host
|
## Normal HTTP host
|
||||||
server {
|
server {
|
||||||
listen 0.0.0.0:80;
|
listen 0.0.0.0:80;
|
||||||
|
@ -10,7 +9,9 @@ server {
|
||||||
include /etc/nginx/snippets/letsencrypt-proxy.conf;
|
include /etc/nginx/snippets/letsencrypt-proxy.conf;
|
||||||
## Redirects all traffic to the HTTPS host
|
## Redirects all traffic to the HTTPS host
|
||||||
root /nowhere; ## root doesn't have to be a valid path since we are redirecting
|
root /nowhere; ## root doesn't have to be a valid path since we are redirecting
|
||||||
rewrite ^ https://$host$request_uri? permanent;
|
location / {
|
||||||
|
return 301 https://$host$request_uri?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#HTTP host for internal services
|
#HTTP host for internal services
|
||||||
|
@ -21,8 +22,8 @@ server {
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
|
|
||||||
include /etc/nginx/snippets/letsencrypt-proxy.conf;
|
include /etc/nginx/snippets/letsencrypt-proxy.conf;
|
||||||
include /etc/nginx/includes/onlyoffice-documentserver-common.conf;
|
include /etc/nginx/includes/ds-*.conf;
|
||||||
include /etc/nginx/includes/onlyoffice-documentserver-docservice.conf;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
## HTTPS host
|
## HTTPS host
|
||||||
|
@ -38,6 +39,6 @@ server {
|
||||||
include /etc/nginx/snippets/nginx-server-ssl.conf;
|
include /etc/nginx/snippets/nginx-server-ssl.conf;
|
||||||
# add_header X-Frame-Options SAMEORIGIN;
|
# add_header X-Frame-Options SAMEORIGIN;
|
||||||
add_header X-Content-Type-Options nosniff;
|
add_header X-Content-Type-Options nosniff;
|
||||||
include /etc/nginx/includes/onlyoffice-documentserver-*.conf;
|
include /etc/nginx/includes/ds-*.conf;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue