## Managed by ansible
## vim: noexpandtab tabstop=4
server {
	listen [::]:443 ssl default_server;
	listen 443 ssl default_server;
	ssl_certificate /etc/letsencrypt/live/haskell.fi.muni.cz/fullchain.pem;
	ssl_certificate_key /etc/letsencrypt/live/haskell.fi.muni.cz/privkey.pem;
	include /etc/letsencrypt/options-ssl-nginx.conf;
	ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

	server_name fja.fi.muni.cz;

	root /home/fja/eval/evalweb;
	location / { try_files $uri @main; }
	location @main {
		include uwsgi_params;
		uwsgi_pass unix:/run/uwsgi/fjaweb.socket;
	}   

	location /admin {
		return 302 https://hesperia.fi.muni.cz/admin;
	}   

	location /compare {
		return 302 https://fja.fi.muni.cz/reg/compare;
	}   

	location /convert {
		return 302 https://fja.fi.muni.cz/reg/convert;
	} 
}
