server {
	listen *:443 ssl http2;
	listen [::]:443 ssl http2;

	server_name r.mateu.be perso.nintendojo.fr perso.libertus.eu;
	access_log /var/log/nginx/r.mateu.be.access.log combined;
	access_log syslog:server=unix:/dev/log combined;
	error_log /var/log/nginx/r.mateu.be.error.log;
	error_log syslog:server=unix:/dev/log;
	ssl_certificate /etc/x509/r.mateu.be/fullchain.cer;
	ssl_certificate_key /etc/x509/r.mateu.be/r.mateu.be.key;

	root /srv/http/r.mateu.be/;

	location / {
		autoindex on;
	}

	location ~ ^/~mortal/(.*)$ {
		return 301 https://r.mateu.be/$1;
	}

	location ~ ^/~clement\.veret/(.*)$ {
		return 301 https://r.mateu.be/$1;
	}
}

