added env vars to server configs, cleanup for app.php