How to set uuid-ossp as a default extension for whole server?
The CREATE DATABASE command always clones some existing template database.
If this parameter is not specified, postgresql uses the template1 database as the default. Thus, any prior changes in template1 database will be part of the new database (unless another TEMPLATE  has been specified explicitly).
You need connect to template1 database and create the uuid-ossp extension in this database.