converted nginx conf file to template
This commit is contained in:
parent
7dabec8310
commit
40ceefb00c
2 changed files with 14 additions and 6 deletions
|
@ -10,6 +10,7 @@
|
||||||
- librsvg
|
- librsvg
|
||||||
- php-legacy-igbinary
|
- php-legacy-igbinary
|
||||||
- php-legacy-redis
|
- php-legacy-redis
|
||||||
|
- php-legacy-fpm
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: deploy nextcloud php.ini file
|
- name: deploy nextcloud php.ini file
|
||||||
|
@ -47,11 +48,18 @@
|
||||||
src: files/fpm-nextcloud.conf
|
src: files/fpm-nextcloud.conf
|
||||||
dest: /etc/php-legacy/php-fpm.d/nextcloud.conf
|
dest: /etc/php-legacy/php-fpm.d/nextcloud.conf
|
||||||
|
|
||||||
- name: ensure php-fpm-legacy override directory exists
|
- name: ensure php-fpm override directory exists
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/systemd/system/php-fpm-legacy.service.d/
|
path: /etc/systemd/system/php-fpm-legacy.service.d/
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
|
- name: ensure php-fpm log directory exists
|
||||||
|
ansible.builtin.file:
|
||||||
|
path:
|
||||||
|
- /var/log/php-fpm-legacy/
|
||||||
|
- /var/log/php-fpm-legacy/access/
|
||||||
|
state: directory
|
||||||
|
|
||||||
- name: deploy php-fpm systemd override
|
- name: deploy php-fpm systemd override
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: files/php-fpm-override.conf
|
src: files/php-fpm-override.conf
|
||||||
|
@ -59,7 +67,7 @@
|
||||||
#notify php-fpm-legacy
|
#notify php-fpm-legacy
|
||||||
|
|
||||||
- name: deploy nextcloud nginx file
|
- name: deploy nextcloud nginx file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.template:
|
||||||
src: files/nginx-nextcloud.conf
|
src: files/nginx-nextcloud.conf
|
||||||
dest: /etc/nginx/conf.d/nextcloud.conf
|
dest: /etc/nginx/conf.d/nextcloud.conf
|
||||||
#notify nginx
|
#notify nginx
|
||||||
|
|
|
@ -4,11 +4,11 @@ upstream php-handler {
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
listen 443 ssl;# http2;
|
listen 443 ssl;
|
||||||
server_name cloud.actcur.com ;
|
server_name {{ ansible_fqdn }} ;
|
||||||
|
|
||||||
ssl_certificate /etc/nginx/certs/cloud.actcur.com/fullchain.pem;
|
ssl_certificate /etc/nginx/certs/{{ ansible_fqdn }}.actcur.com/fullchain.pem;
|
||||||
ssl_certificate_key /etc/nginx/certs/cloud.actcur.com/privkey.pem;
|
ssl_certificate_key /etc/nginx/certs/{{ ansible_fqdn }}.actcur.com/privkey.pem;
|
||||||
ssl_session_cache shared:SSL:10m;
|
ssl_session_cache shared:SSL:10m;
|
||||||
|
|
||||||
# Add headers to serve security related headers
|
# Add headers to serve security related headers
|
Loading…
Add table
Reference in a new issue