mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 07:48:33 +01:00
feat: backup + mail stuff
This commit is contained in:
26
roles/mail/files/nginx_default.conf
Normal file
26
roles/mail/files/nginx_default.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
server {
|
||||
|
||||
server_name mail.atlantishq.de autoconfig.atlantishq.de autodiscover.atlantishq.de autoconfig.potaris.de;
|
||||
listen 443 ssl;
|
||||
listen 80;
|
||||
listen [::]:443 ssl;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
auth_basic off;
|
||||
alias /var/www/.well-known/acme-challenge/;
|
||||
}
|
||||
|
||||
location /initdb {
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /{
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Proto http;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_pass http://localhost:8080;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user