feat: backup+mail

This commit is contained in:
2023-01-09 21:55:03 +01:00
parent 31c56db27f
commit 00f0fb6bbf
9 changed files with 142 additions and 12 deletions

View File

@@ -1,7 +1,5 @@
# Sender adress the user may use :)
HISTORY_PURGED_SECRET HISTORY_PURGED_SECRET
check@atlantishq.de check@atlantishq.de,HISTORY_PURGED_SECRET
test@atlantishq.de check@atlantishq.de
joerg@darknet-fashion.de joerg@darknet-fashion.de
HISTORY_PURGED_SECRET HISTORY_PURGED_SECRET
@darknet-fashion.de joerg

View File

@@ -0,0 +1,63 @@
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_certificate /etc/letsencrypt/live/atlantishq.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/atlantishq.de/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

2
roles/mail/meta/main.yml Normal file
View File

@@ -0,0 +1,2 @@
dependencies:
- global-handlers

View File

@@ -2,15 +2,16 @@
apt:
pkg:
- postfix
- dovecot
- dovecot-core
- dovecot-imapd
- spamassassin
- nginx
state: present
- name: Deploy Postfix config
file:
src: {{ item }}
dest: /etc/postfix/{{ item }}
copy:
src: "{{ item }}"
dest: "/etc/postfix/{{ item }}"
with_items:
- dynamicmaps.cf
- enabled_senders
@@ -24,21 +25,21 @@
notify: restart postfix
- name: Deploy Dovecot config
file:
src: {{ item }}
dest: /etc/dovecot/{{ item }}
copy:
src: "{{ item }}"
dest: "/etc/dovecot/{{ item }}"
with_items:
- dovecot.conf
notify: restart dovecot
- name: Deploy nginx-config
file:
copy:
src: nginx.conf
dest: /etc/nginx/nginx.conf
notify: restart nginx
- name: Deploy nginx-config (page)
file:
copy:
src: nginx_default.conf
dest: /etc/nginx/sites-available/default
notify: restart nginx