♻: move wordpress specifics for nginx to nginx role
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m33s
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m33s
This commit is contained in:
@@ -1,4 +1,11 @@
|
|||||||
## WP NintendojoFR
|
## WP NintendojoFR
|
||||||
|
fastcgi_cache_path
|
||||||
|
/dev/shm/nginx
|
||||||
|
levels=1:2
|
||||||
|
keys_zone=wpdojo:25m
|
||||||
|
inactive=1h
|
||||||
|
max_size=250m;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen *:443 ssl http2;
|
listen *:443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
|
@@ -1,7 +0,0 @@
|
|||||||
fastcgi_cache_path
|
|
||||||
/dev/shm/nginx
|
|
||||||
levels=1:2
|
|
||||||
keys_zone=wpdojo:25m
|
|
||||||
inactive=1h
|
|
||||||
max_size=250m;
|
|
||||||
|
|
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: Restart nginx
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: nginx
|
|
||||||
state: restarted
|
|
@@ -2,5 +2,3 @@
|
|||||||
|
|
||||||
- name: Init DB
|
- name: Init DB
|
||||||
ansible.builtin.include_tasks: db.yml
|
ansible.builtin.include_tasks: db.yml
|
||||||
- name: WP for NintendojoFR
|
|
||||||
ansible.builtin.include_tasks: wp_dojo.yml
|
|
||||||
|
@@ -1,16 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: Put nginx cache configuration file
|
|
||||||
ansible.builtin.copy:
|
|
||||||
src: files/fastcgi_cache.conf
|
|
||||||
dest: /etc/nginx/conf.d/fastcgi_cache.conf
|
|
||||||
mode: "0o644"
|
|
||||||
notify:
|
|
||||||
- Restart nginx
|
|
||||||
|
|
||||||
- name: Cron for wordpress
|
|
||||||
ansible.builtin.cron:
|
|
||||||
name: "WP Twitter refresh"
|
|
||||||
user: www-data
|
|
||||||
minute: "*/2"
|
|
||||||
job: "/usr/bin/wget -q -O - https://www.nintendojo.fr/wp-cron.php &> /dev/null"
|
|
Reference in New Issue
Block a user