Compare commits
12 Commits
server-23.
...
server-25.
Author | SHA1 | Date | |
---|---|---|---|
acbb6bfef7
|
|||
0368d71410
|
|||
c7fd45b47f
|
|||
8ff2a5878e
|
|||
b02037f743
|
|||
63a291121a
|
|||
69d76f3342
|
|||
f465c5d792
|
|||
29a145fe42
|
|||
f27abe9e42
|
|||
e76e4beac0
|
|||
b40bd1a383
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
nextcloud_nginx_version: "1.21.3"
|
nextcloud_nginx_version: "1.23.2"
|
||||||
nextcloud_nginx_basepath: /opt/nextcloud-nginx
|
nextcloud_nginx_basepath: /opt/nextcloud-nginx
|
||||||
nextcloud_nginx_config: "{{ nextcloud_nginx_basepath }}/nextcloud.conf"
|
nextcloud_nginx_config: "{{ nextcloud_nginx_basepath }}/nextcloud.conf"
|
||||||
nextcloud_nginx_servernames: ~
|
nextcloud_nginx_servernames: ~
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
upstream php-handler {
|
upstream php-handler {
|
||||||
{% if fpm_socket %}
|
{% if fpm_socket %}
|
||||||
|
{% if fpm_socket is not string %}
|
||||||
|
{% for upstream in fpm_socket %}
|
||||||
|
server unix:{{ upstream }};
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
server unix:{{ fpm_socket }};
|
server unix:{{ fpm_socket }};
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
server {{ fpm_server }}:{{ fpm_server_port }};
|
server {{ fpm_server }}:{{ fpm_server_port }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -12,3 +12,10 @@ so the host file permissions remain comprehensible.
|
|||||||
- `nextcloud_socket_path`: Setting this (to, for example, `{{ nextcloud_basepath }}/socket`),
|
- `nextcloud_socket_path`: Setting this (to, for example, `{{ nextcloud_basepath }}/socket`),
|
||||||
will make FPM listen on `{{ nextcloud_socket_path }}/nextcloud.sock` on the host, enabling
|
will make FPM listen on `{{ nextcloud_socket_path }}/nextcloud.sock` on the host, enabling
|
||||||
you to use FPM to interface with nextcloud.
|
you to use FPM to interface with nextcloud.
|
||||||
|
|
||||||
|
### Redis over UNIX-Socket
|
||||||
|
|
||||||
|
Set `REDIS_HOST` to a path in the container where the socket is mapped using
|
||||||
|
`nextcloud_container_extra_environment`. Also set `REDIS_HOST_PORT` to 0
|
||||||
|
explicitely, as `redis.config.php` will set it to `null` otherwise, resulting
|
||||||
|
in an exception. Set your redis password in `REDIS_HOST_PASSWORD`.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
nextcloud_version: 23.0.3
|
nextcloud_version: 25.0.3
|
||||||
nextcloud_user: nextcloud
|
nextcloud_user: nextcloud
|
||||||
nextcloud_basepath: /opt/nextcloud
|
nextcloud_basepath: /opt/nextcloud
|
||||||
nextcloud_config_path: "{{ nextcloud_basepath }}/config"
|
nextcloud_config_path: "{{ nextcloud_basepath }}/config"
|
||||||
@ -46,19 +46,19 @@ nextcloud_container_purge_other_networks: true
|
|||||||
nextcloud_paths:
|
nextcloud_paths:
|
||||||
- path: "{{ nextcloud_config_path }}"
|
- path: "{{ nextcloud_config_path }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
owner: "{{ nextcloud_user_info.uid|default(nextcloud_user) }}"
|
owner: "{{ nextcloud_user_info.uid | default(nextcloud_user) }}"
|
||||||
group: "root"
|
group: root
|
||||||
- path: "{{ nextcloud_data_path }}"
|
- path: "{{ nextcloud_data_path }}"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
owner: "{{ nextcloud_user_info.uid|default(nextcloud_user) }}"
|
owner: "{{ nextcloud_user_info.uid | default(nextcloud_user) }}"
|
||||||
group: "{{ nextcloud_user_info.uid|default(nextcloud_user) }}"
|
group: "{{ nextcloud_user_info.group | default(nextcloud_user) }}"
|
||||||
- path: "{{ nextcloud_fpm_config_path }}"
|
- path: "{{ nextcloud_fpm_config_path }}"
|
||||||
mode: "0750"
|
mode: "0750"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
- path: "{{ nextcloud_storage_path }}"
|
- path: "{{ nextcloud_storage_path }}"
|
||||||
mode: "0770"
|
mode: "0770"
|
||||||
owner: "{{ nextcloud_user_info.uid|default(nextcloud_user) }}"
|
owner: "{{ nextcloud_user_info.uid | default(nextcloud_user) }}"
|
||||||
group: "root"
|
group: "root"
|
||||||
|
|
||||||
# PHP OpCache tuning
|
# PHP OpCache tuning
|
||||||
|
@ -4,7 +4,7 @@ user = www-data
|
|||||||
group = www-data
|
group = www-data
|
||||||
|
|
||||||
{% if nextcloud_socket_path is defined and nextcloud_socket_path is string %}
|
{% if nextcloud_socket_path is defined and nextcloud_socket_path is string %}
|
||||||
listen = {{ nextcloud_container_php_socket_path }}/nextcloud.sock
|
listen = {{ nextcloud_container_php_socket_path }}/{{ nextcloud_container_name }}.sock
|
||||||
listen.owner = www-data
|
listen.owner = www-data
|
||||||
listen.group = www-data
|
listen.group = www-data
|
||||||
listen.mode = 0666
|
listen.mode = 0666
|
||||||
|
Reference in New Issue
Block a user