mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Fix owncloud js (from php) and add tests
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
{% else %}
|
||||
include fastcgi.conf;
|
||||
{% endif %}
|
||||
}
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass {{ php_upstream }};
|
||||
@@ -61,7 +61,7 @@
|
||||
}
|
||||
|
||||
location ~* \.(?:css|js)$ {
|
||||
try_files $uri /index.php$uri$is_args$args;
|
||||
try_files $uri /index.php$is_args$args;
|
||||
add_header Cache-Control "public, max-age=7200";
|
||||
expires 2h;
|
||||
access_log off;
|
||||
|
||||
@@ -312,6 +312,27 @@
|
||||
register: nagios_cgi
|
||||
failed_when: nagios_cgi.stdout.find('Nagios Event Summary') == -1
|
||||
|
||||
# --------------------------------
|
||||
# Owncloud
|
||||
# --------------------------------
|
||||
- block:
|
||||
- name: -- VERIFY OWNCLOUD --
|
||||
command: "curl -H 'Host: owncloud.local' http://127.0.0.1/"
|
||||
changed_when: false
|
||||
register: ownsimple
|
||||
failed_when: ownsimple.stdout.find('ownCloud') == -1
|
||||
- name: -- VERIFY OWNCLOUD JS (FROM PHP)--
|
||||
command: "curl -H 'Host: owncloud.local' http://127.0.0.1/index.php/core/js/oc.js"
|
||||
changed_when: false
|
||||
register: ownjsphp
|
||||
failed_when: ownjsphp.stdout.find('var oc_debug=false') == -1
|
||||
- name: -- VERIFY OWNCLOUD JS --
|
||||
command: "curl -H 'Host: owncloud.local' http://127.0.0.1/core/js/js.js"
|
||||
changed_when: false
|
||||
register: ownjs
|
||||
failed_when: ownjs.stdout.find('var oc_debug') == -1
|
||||
when: ansible_distribution != 'FreeBSD'
|
||||
|
||||
# --------------------------------
|
||||
# SSL
|
||||
# --------------------------------
|
||||
|
||||
Reference in New Issue
Block a user