Ajout d’UniFi, modif spamassassin, amélioration MariaDB, création de Rhea
This commit is contained in:
@@ -85,3 +85,4 @@
|
||||
minute: "{{ mariadb_backup_minute }}"
|
||||
job: "/usr/local/bin/backup_mysql.sh"
|
||||
state: present
|
||||
|
||||
|
@@ -14,27 +14,8 @@ server {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location ~ ^/(inc|plugins|db|cache)/ {
|
||||
deny all;
|
||||
}
|
||||
|
||||
## Inter PHP en path_info
|
||||
location ~ ^/(index).php(/.*)+ {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
## Inter PHP brute
|
||||
location ~ \.php$ {
|
||||
try_files $uri $uri/ =404;
|
||||
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
## redirection des zolies URLs vers index.php
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$uri?$args;
|
||||
location /feed/atom {
|
||||
return 302 /atom.xml;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,22 +0,0 @@
|
||||
server {
|
||||
{% include './templates/header.conf.j2' %}
|
||||
root /srv/http/coince.mateu.be/;
|
||||
index index.htm index.html index.php;
|
||||
|
||||
allow 2001:bc8:26c1:101:0:0:0:0/64;
|
||||
allow 2001:bc8:26c1:105:0:0:0:0/64;
|
||||
allow 2001:1b48:2:103::6d:2;
|
||||
allow 83.167.52.81;
|
||||
deny all;
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri $uri/ =404;
|
||||
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location /var {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
@@ -9,6 +9,9 @@ score UNWANTED_LANGUAGE_BODY 5
|
||||
header LOCAL_CARESSE Subject =~ /caresse/i
|
||||
score LOCAL_CARESSE 3.0
|
||||
|
||||
header LOCAL_FRAUEN Subject =~ /single frauen/i
|
||||
score LOCAL_FRAUEN 10.0
|
||||
|
||||
header LOCAL_CETOSE Subject =~ /cétose/i
|
||||
score LOCAL_CETOSE 5.0
|
||||
|
||||
@@ -91,6 +94,9 @@ score LOCAL_BITCOIN 10.0
|
||||
whitelist_from *@chichiclothing.com
|
||||
|
||||
# Blacklist manuel
|
||||
blacklist_from *@broad-bandsearch.net
|
||||
blacklist_from *@nocimase.de
|
||||
blacklist_from *@zintesder.de
|
||||
blacklist_from *@affgalaxy.com
|
||||
blacklist_from *@olabizer.de
|
||||
blacklist_from *@bizetase.nl
|
||||
|
15
roles/unifi/tasks/main.yml
Normal file
15
roles/unifi/tasks/main.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
- name: Add APT Key for Unifi
|
||||
apt_key:
|
||||
url: https://dl.ui.com/unifi/unifi-repo.gpg
|
||||
state: present
|
||||
|
||||
- name: Add APT Unifi repository
|
||||
apt_repository:
|
||||
repo: deb https://www.ui.com/downloads/unifi/debian stable ubiquiti
|
||||
state: present
|
||||
filename: unifi
|
||||
|
||||
- name: install Unifi
|
||||
package:
|
||||
name: unifi
|
||||
state: present
|
Reference in New Issue
Block a user