⚰: remove dead websites
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m19s
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m19s
This commit is contained in:
@@ -4,7 +4,6 @@ php_modules: ['opcache', 'mysql', 'mbstring', 'gd', 'intl', 'xml', 'bcmath', 'cu
|
|||||||
web_hostname:
|
web_hostname:
|
||||||
- host: nintendojo.fr
|
- host: nintendojo.fr
|
||||||
- host: www.nintendojo.fr
|
- host: www.nintendojo.fr
|
||||||
- host: wwwdev.nintendojo.fr
|
|
||||||
- host: forum.nintendojo.fr
|
- host: forum.nintendojo.fr
|
||||||
type: phpbb
|
type: phpbb
|
||||||
- host: nintendojofr.com
|
- host: nintendojofr.com
|
||||||
|
@@ -1,17 +0,0 @@
|
|||||||
---
|
|
||||||
php_modules: ['opcache', 'mysql', 'mbstring', 'gd', 'intl', 'xml', 'bcmath', 'curl', 'imagick']
|
|
||||||
|
|
||||||
web_hostname:
|
|
||||||
- host: sebicomics.com
|
|
||||||
- host: www.sebicomics.com
|
|
||||||
|
|
||||||
mariadb_root_pass: !vault |
|
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
66613630653961396639336136333837343866646263353135303233383336356166663466623438
|
|
||||||
6438653832313536363631336363306337366165616561370a316466353535313164623934626563
|
|
||||||
65343238333661333765636131323962316637613036393366343161343162393337376232633432
|
|
||||||
3233653232353534370a393962663766623237313166333638343561306134663062333230333635
|
|
||||||
63343339363833626136646134353365393734346561613262633531386135366634
|
|
||||||
|
|
||||||
# 283M of base memory + 20MB/connection -> 1267M of RAM max
|
|
||||||
mariadb_max_connections: 50
|
|
@@ -1,33 +0,0 @@
|
|||||||
server {
|
|
||||||
{% include './templates/header.conf.j2' %}
|
|
||||||
|
|
||||||
root /srv/http/analyse.nintendojo.fr/;
|
|
||||||
index index.html index.htm index.php;
|
|
||||||
|
|
||||||
location ~ ^/(status|ping|apc_info.php)$ {
|
|
||||||
access_log off;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
|
|
||||||
expires 2w;
|
|
||||||
log_not_found off;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.htaccess$ {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/tmp {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
try_files $uri $uri/ =404;
|
|
||||||
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
|
||||||
include fastcgi_params;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@@ -1,6 +1,5 @@
|
|||||||
server {
|
server {
|
||||||
{% include './templates/header.conf.j2' %}
|
{% include './templates/header.conf.j2' %}
|
||||||
root /srv/http/forum.nintendojofr.com/;
|
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
@@ -1,13 +1,13 @@
|
|||||||
server {
|
server {
|
||||||
listen *:443 ssl http2;
|
listen *:443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
server_name nintendojofr.com www.nintendojofr.com;
|
server_name www.nintendojofr.com nintendojofr.com;
|
||||||
access_log /var/log/nginx/nintendojofr.com.access.log combined;
|
access_log /var/log/nginx/nintendojofr.com.access.log combined;
|
||||||
access_log syslog:server=unix:/dev/log combined;
|
access_log syslog:server=unix:/dev/log combined;
|
||||||
error_log /var/log/nginx/nintendojofr.com.error.log;
|
error_log /var/log/nginx/nintendojofr.com.error.log;
|
||||||
error_log syslog:server=unix:/dev/log;
|
error_log syslog:server=unix:/dev/log;
|
||||||
ssl_certificate /etc/x509/nintendojofr.com/fullchain.cer;
|
ssl_certificate /etc/x509/www.nintendojofr.com/fullchain.cer;
|
||||||
ssl_certificate_key /etc/x509/nintendojofr.com/nintendojofr.com.key;
|
ssl_certificate_key /etc/x509/www.nintendojofr.com/www.nintendojofr.com.key;
|
||||||
|
|
||||||
root /var/www/www.nintendojofr.com/;
|
root /var/www/www.nintendojofr.com/;
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
|
@@ -1,54 +0,0 @@
|
|||||||
## WP Sebicomics
|
|
||||||
server {
|
|
||||||
listen *:443 ssl http2;
|
|
||||||
listen [::]:443 ssl http2;
|
|
||||||
server_name sebicomics.com www.sebicomics.com;
|
|
||||||
access_log /var/log/nginx/www.sebicomics.com.access.log combined;
|
|
||||||
access_log syslog:server=unix:/dev/log combined;
|
|
||||||
error_log /var/log/nginx/www.sebicomics.com.error.log;
|
|
||||||
error_log syslog:server=unix:/dev/log;
|
|
||||||
ssl_certificate /etc/x509/www.sebicomics.com/fullchain.cer;
|
|
||||||
ssl_certificate_key /etc/x509/www.sebicomics.com/www.sebicomics.com.key;
|
|
||||||
|
|
||||||
root /srv/http/www.sebicomics.com/;
|
|
||||||
index index.html index.htm index.php;
|
|
||||||
|
|
||||||
client_max_body_size 512M;
|
|
||||||
|
|
||||||
# couper les fichiers cachés
|
|
||||||
location ~* /(?:uploads|files)/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
# couper les fichiers textes du captcha
|
|
||||||
location ~* /wp-content/uploads/wpcf7_captcha/.*\.txt$ {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Optimisation des images
|
|
||||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
|
|
||||||
expires 1w;
|
|
||||||
log_not_found off;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Interprétation PHP
|
|
||||||
location ~ ^/(index).php(/.*)+ {
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
|
||||||
try_files $fastcgi_script_name =404;
|
|
||||||
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
|
|
||||||
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
|
||||||
fastcgi_read_timeout 60;
|
|
||||||
include fastcgi_params;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
try_files $uri $uri/ =404;
|
|
||||||
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
|
||||||
fastcgi_read_timeout 60;
|
|
||||||
include fastcgi_params;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.php$uri?$args;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,46 +0,0 @@
|
|||||||
## WP NintendojoFR
|
|
||||||
server {
|
|
||||||
{% include './templates/header.conf.j2' %}
|
|
||||||
|
|
||||||
root /srv/http/wwwdev.nintendojo.fr/;
|
|
||||||
index index.html index.htm index.php;
|
|
||||||
auth_basic "Restricted Area";
|
|
||||||
auth_basic_user_file /etc/nginx/wwwdev.htpasswd;
|
|
||||||
|
|
||||||
client_max_body_size 2G;
|
|
||||||
|
|
||||||
# couper les fichiers cachés
|
|
||||||
location ~* /(?:uploads|files)/.*\.php$ {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
# couper les fichiers textes du captcha
|
|
||||||
location ~* /wp-content/uploads/wpcf7_captcha/.*\.txt$ {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
# redirige twitter
|
|
||||||
location /feed/twitter {
|
|
||||||
return 307 https://m.nintendojo.fr/@nintendojofr.rss;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Interprétation PHP
|
|
||||||
location ~ ^/(index).php(/.*)+ {
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
|
||||||
try_files $fastcgi_script_name =404;
|
|
||||||
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
|
||||||
fastcgi_read_timeout 60;
|
|
||||||
include fastcgi_params;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
try_files $uri $uri/ =404;
|
|
||||||
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
|
||||||
fastcgi_read_timeout 60;
|
|
||||||
include fastcgi_params;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.php$uri?$args;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -4,5 +4,3 @@
|
|||||||
ansible.builtin.include_tasks: db.yml
|
ansible.builtin.include_tasks: db.yml
|
||||||
- name: WP for NintendojoFR
|
- name: WP for NintendojoFR
|
||||||
ansible.builtin.include_tasks: wp_dojo.yml
|
ansible.builtin.include_tasks: wp_dojo.yml
|
||||||
- name: WP dev for NintendojoFR
|
|
||||||
ansible.builtin.include_tasks: wpdev_dojo.yml
|
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: Put htpasswd file
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: wwwdev.htpasswd.j2
|
|
||||||
dest: /etc/nginx/wwwdev.htpasswd
|
|
||||||
owner: www-data
|
|
||||||
group: www-data
|
|
||||||
mode: "0o600"
|
|
@@ -1 +0,0 @@
|
|||||||
editeurs:{{ webapps_htpasswd_editeurs }}
|
|
Reference in New Issue
Block a user