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

28 lines
507 B
Plaintext
Raw Normal View History

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