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 | |
| 16 | // Enllaç al formulari de Google de l'FME |
| 17 | $conf['formUrl'] = 'https://docs.google.com/forms/d/e/1FAIpQLSfT9o287VqLyhwR8LPdloAQWhuqCgA3NfdhgP5vb9_sVQHL-g/viewform'; |
| 18 | |
| 19 | // Credencials de les APIs de Google (seguir pasos de |
| 20 | // https://developers.google.com/identity/protocols/oauth2/web-server#creatingcred) |
| 21 | $conf['goog'] = []; |
| 22 | $conf['goog']['clientId'] = ''; |
| 23 | $conf['goog']['secret'] = ''; |
| 24 | |
| 25 | // Lloc on s'allotja l'API (backend, és a dir, aquest programari) |
| 26 | // Exemple: https://covid-backend.fme.upc.edu/ |
| 27 | $conf['fullPath'] = ''; |
| 28 | |
| 29 | // Lloc on s'allotja el web (frontend) |
| 30 | // Exemple: https://covid.fme.upc.edu/ |
avm99963 | dbd9a12 | 2020-09-24 18:51:45 +0200 | [diff] [blame] | 31 | $conf['frontendUrl'] = ''; |
| 32 | |
| 33 | // Valor del header Access-Control-Allow-Origin per les peticions a l'API. |
| 34 | // Per defecte és el valor de la variable $conf['homeUrl'] |
| 35 | $conf['allowedOrigin'] = $conf['homeUrl']; |