A common approach is to lock the bike to something solid and to keep all your valuables like wallet and passport etc. in a handle bar bag that you always take with you. Don't worry about stuff you leave on the bike, 99.99% of the time it will be there when you get back, and if it isn't you'll have to get by without it until it can be replaced.