⚰: remove dead websites
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m15s
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m15s
This commit is contained in:
@@ -4,7 +4,6 @@ php_modules: ['opcache', 'mysql', 'mbstring', 'gd', 'intl', 'xml', 'bcmath', 'cu
|
||||
web_hostname:
|
||||
- host: nintendojo.fr
|
||||
- host: www.nintendojo.fr
|
||||
- host: wwwdev.nintendojo.fr
|
||||
- host: forum.nintendojo.fr
|
||||
type: phpbb
|
||||
- host: nintendojofr.com
|
||||
|
@@ -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 {
|
||||
{% include './templates/header.conf.j2' %}
|
||||
root /srv/http/forum.nintendojofr.com/;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
location / {
|
||||
|
@@ -1,13 +1,13 @@
|
||||
server {
|
||||
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 syslog:server=unix:/dev/log combined;
|
||||
error_log /var/log/nginx/nintendojofr.com.error.log;
|
||||
error_log syslog:server=unix:/dev/log;
|
||||
ssl_certificate /etc/x509/nintendojofr.com/fullchain.cer;
|
||||
ssl_certificate_key /etc/x509/nintendojofr.com/nintendojofr.com.key;
|
||||
ssl_certificate /etc/x509/www.nintendojofr.com/fullchain.cer;
|
||||
ssl_certificate_key /etc/x509/www.nintendojofr.com/www.nintendojofr.com.key;
|
||||
|
||||
root /var/www/www.nintendojofr.com/;
|
||||
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
|
||||
- name: WP for NintendojoFR
|
||||
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