avm99963 | 7099538 | 2020-09-23 01:03:01 +0200 | [diff] [blame] | 1 | <?php |
| 2 | // App configuration |
| 3 | |
| 4 | $conf = []; |
| 5 | |
| 6 | // Nom de l'aplicatiu |
| 7 | $conf['appName'] = 'App de traçabilitat DAFME'; |
| 8 | |
| 9 | // Configuració de la base de dades |
| 10 | $conf['db'] = []; |
| 11 | $conf['db']['host'] = ''; |
| 12 | $conf['db']['database'] = ''; |
| 13 | $conf['db']['user'] = ''; |
| 14 | $conf['db']['password'] = ''; |
| 15 | |
avm99963 | 7099538 | 2020-09-23 01:03:01 +0200 | [diff] [blame] | 16 | // Credencials de les APIs de Google (seguir pasos de |
| 17 | // https://developers.google.com/identity/protocols/oauth2/web-server#creatingcred) |
| 18 | $conf['goog'] = []; |
| 19 | $conf['goog']['clientId'] = ''; |
| 20 | $conf['goog']['secret'] = ''; |
| 21 | |
| 22 | // Lloc on s'allotja l'API (backend, és a dir, aquest programari) |
| 23 | // Exemple: https://covid-backend.fme.upc.edu/ |
| 24 | $conf['fullPath'] = ''; |
| 25 | |
| 26 | // Lloc on s'allotja el web (frontend) |
| 27 | // Exemple: https://covid.fme.upc.edu/ |
avm99963 | dbd9a12 | 2020-09-24 18:51:45 +0200 | [diff] [blame] | 28 | $conf['frontendUrl'] = ''; |
| 29 | |
avm99963 | 3cc83b6 | 2020-09-27 21:03:44 +0200 | [diff] [blame] | 30 | // Llistat d'orígens permesos per interactuar amb l'API. |
| 31 | // |
| 32 | // NOTA: És important que els valors de l'array no acabin amb un "/" final. |
| 33 | // Exemple: ['https://covid.fme.upc.edu'] |
| 34 | $conf['allowedOrigins'] = []; |
| 35 | |
| 36 | // Ignorar la llista d'orígens permesos i permetre a qualsevol pàgina web |
| 37 | // interactuar amb l'API |
| 38 | $conf['allowAllOrigins'] = false; |
avm99963 | 3b7e7c3 | 2020-09-28 17:29:36 +0200 | [diff] [blame] | 39 | |
| 40 | // URL del repositori de GitHub. |
| 41 | $conf['gitHubRepo'] = 'https://github.com/delefme/covid-tracability-backend'; |
avm99963 | 5a2490b | 2020-09-28 23:14:27 +0200 | [diff] [blame] | 42 | |
| 43 | // Configurar si estem a producció ("false" vol dir que estem en un servidor |
| 44 | // de desenvolupament local) |
| 45 | $conf['isProduction'] = true; |