Drop owncloud code
parent
6cae501266
commit
713a2241de
|
@ -125,14 +125,6 @@ nginx_acmesh_dir: "/opt/acme.sh"
|
||||||
nginx_acmesh_git_dir: "/tmp/acme.sh"
|
nginx_acmesh_git_dir: "/tmp/acme.sh"
|
||||||
nginx_acmesh_test: false
|
nginx_acmesh_test: false
|
||||||
|
|
||||||
# Extra
|
|
||||||
|
|
||||||
# Note:
|
|
||||||
# - On Debian, if you use Owncloud from Upstream repository, you must set this var to "/var/www/owncloud"
|
|
||||||
# - TODO: force this var in vars/FreeBSD.yml
|
|
||||||
nginx_owncloud_root: '/usr/share/owncloud'
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Debug
|
# Debug
|
||||||
#
|
#
|
||||||
|
|
|
@ -43,7 +43,6 @@ Templates
|
||||||
- `_dokuwiki`
|
- `_dokuwiki`
|
||||||
- `_redirect`: should not be called explicitly
|
- `_redirect`: should not be called explicitly
|
||||||
- `_nagios3`: access to Nagios3 (be careful: you need to install [fcgiwrap](https://packages.debian.org/jessie/fcgiwrap))
|
- `_nagios3`: access to Nagios3 (be careful: you need to install [fcgiwrap](https://packages.debian.org/jessie/fcgiwrap))
|
||||||
- `_owncloud`: access to Owncloud (note: you must set `nginx_apt_package` to //nginx-extras//) **UNSTABLE**
|
|
||||||
- `_phalcon`: Phalcon PHP Framework
|
- `_phalcon`: Phalcon PHP Framework
|
||||||
- `_php`: PHP base template. Can work with many frameworks/tools
|
- `_php`: PHP base template. Can work with many frameworks/tools
|
||||||
- `_php_index`: Same as above. But you can only run index.php
|
- `_php_index`: Same as above. But you can only run index.php
|
||||||
|
|
|
@ -1,79 +0,0 @@
|
||||||
{% extends "_php.j2" %}
|
|
||||||
|
|
||||||
{% block root %}
|
|
||||||
root {{ nginx_owncloud_root }};
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block template_index %}
|
|
||||||
index index.php;
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block template_more %}
|
|
||||||
error_page 403 /core/templates/403.php;
|
|
||||||
error_page 404 /core/templates/404.php;
|
|
||||||
gzip off;
|
|
||||||
client_max_body_size 10G;
|
|
||||||
fastcgi_buffers 64 4K;
|
|
||||||
rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect;
|
|
||||||
rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect;
|
|
||||||
rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect;
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block template_headers %}
|
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
|
||||||
add_header X-Robots-Tag none;
|
|
||||||
add_header X-Content-Type-Options nosniff;
|
|
||||||
add_header X-Download-Options noopen;
|
|
||||||
add_header X-Permitted-Cross-Domain-Policies none;
|
|
||||||
add_header X-Frame-Options SAMEORIGIN;
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block template_try_files %}
|
|
||||||
try_files $uri $uri/ =404;
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block template_upstream_location %}
|
|
||||||
location ~ /remote.php {
|
|
||||||
dav_methods PUT DELETE MKCOL COPY MOVE;
|
|
||||||
dav_ext_methods PROPFIND OPTIONS;
|
|
||||||
fastcgi_pass {{ php_upstream }};
|
|
||||||
fastcgi_param HOME {{ nginx_owncloud_root }};
|
|
||||||
fastcgi_param HTTP_HOME {{ nginx_owncloud_root }};
|
|
||||||
fastcgi_param PATH /usr/local/bin:/usr/bin:/bin;
|
|
||||||
fastcgi_param modHeadersAvailable true;
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
||||||
include fastcgi.conf;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php(?:$|/) {
|
|
||||||
fastcgi_pass {{ php_upstream }};
|
|
||||||
fastcgi_index index.php;
|
|
||||||
fastcgi_param HOME {{ nginx_owncloud_root }};
|
|
||||||
fastcgi_param HTTP_HOME {{ nginx_owncloud_root }};
|
|
||||||
fastcgi_param PATH /usr/local/bin:/usr/bin:/bin;
|
|
||||||
fastcgi_param modHeadersAvailable true;
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
||||||
include fastcgi.conf;
|
|
||||||
}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block template_local_content %}
|
|
||||||
location ~* \.(?:css|js)$ {
|
|
||||||
try_files $uri /index.php$is_args$args;
|
|
||||||
expires 2h;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|swf)$ {
|
|
||||||
expires 2d;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = /robots.txt {
|
|
||||||
allow all;
|
|
||||||
log_not_found off;
|
|
||||||
access_log off;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/(?:\.ht|data|config|db_structure\.xml|README){
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
{% endblock %}
|
|
|
@ -7,7 +7,6 @@
|
||||||
install_recommends: no
|
install_recommends: no
|
||||||
with_items:
|
with_items:
|
||||||
- backuppc
|
- backuppc
|
||||||
# - owncloud
|
|
||||||
|
|
||||||
- name: APT | Install nagios3 (only on old Debian releases)
|
- name: APT | Install nagios3 (only on old Debian releases)
|
||||||
apt:
|
apt:
|
||||||
|
|
|
@ -447,28 +447,6 @@
|
||||||
|
|
||||||
when: ansible_distribution == 'Debian' and ansible_distribution_major_version | version_compare('9', 'lt')
|
when: ansible_distribution == 'Debian' and ansible_distribution_major_version | version_compare('9', 'lt')
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------
|
|
||||||
# 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
|
# SSL
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
|
|
@ -42,7 +42,6 @@ nginx_dirs:
|
||||||
nginx_templates_no_dir:
|
nginx_templates_no_dir:
|
||||||
- '_backuppc'
|
- '_backuppc'
|
||||||
- '_nagios3'
|
- '_nagios3'
|
||||||
- '_owncloud'
|
|
||||||
- '_proxy'
|
- '_proxy'
|
||||||
|
|
||||||
nginx_servers_default_headers:
|
nginx_servers_default_headers:
|
||||||
|
|
Loading…
Reference in New Issue