server {
	listen 443;
	server_name api;

	root   /srv/www/obs/api/public;

	access_log /srv/www/obs/api/log/obs-api-access.log;
	error_log  /srv/www/obs/api/log/obs-api-error.log;

	passenger_enabled on;
	passenger_spawn_method smart;
	passenger_min_instances 2;

	passenger_user wwwrun;
	passenger_group www;

	rails_env production;

	include vhosts.d/internal_redirect.include;
}

passenger_pre_start http://localhost:443/;

