1
0
forked from infra/ansible
infra/roles/web/files/vhost

28 lines
645 B
Plaintext

server {
listen 80;
listen [::]:80;
server_name binary-kitchen.de www.binary-kitchen.de binary-kitchen.com www.binary-kitchen.com binary-kitchen.net www.binary-kitchen.net binary.kitchen www.binary.kitchen;
location /.well-known/acme-challenge/ {
default_type "text/plain";
root /var/www/acme-challenge/;
}
location / {
return 301 https://www.binary-kitchen.de$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.binary-kitchen.de;
ssl_certificate_key /etc/nginx/ssl/www.binary-kitchen.de.key;
ssl_certificate /etc/nginx/ssl/www.binary-kitchen.de.crt;
root /var/www/kitchen;
}