FIXME: appel curl ou fopen d'une methode http depuis une action ou un controlleur.
TODO: sécuriser les accès HTTP1.1 par un fichier config similaire a l'applet Discourse faite pour Tinternet
TODO: ajouter un plug-in symfony permettant de charger un utilisateur dans les apps a partir de l'authentification multiple
TODO: lire les documentation officielles provenant des 4 plate-formes tranquillement afin de comprendre commet doit on tester ces type d'auth quitte a créé un sous domaine particulier directement hebergé sur gittea
-->Sécuriser le serveur de dev
... | ... |
@@ -1,5 +1,10 @@ |
1 | 1 |
<?php |
2 | 2 |
|
3 |
+ |
|
4 |
+define('DSN_BDD_DEFAULT', "mysql:host=localhost;dbname=default"); |
|
5 |
+define('USER_BDD_DEFAULT', "user_default"); |
|
6 |
+define('PASS_BDD_DEFAULT', "pass_default"); |
|
7 |
+ |
|
3 | 8 |
define('DSN_BDD1',"mysql:host=localhost;dbname=db1"); |
4 | 9 |
define('USER_BDD1',"user1"); |
5 | 10 |
define('PASS_BDD1',"pass1"); |
... | ... |
@@ -8,4 +13,4 @@ define('DSN_BDD2',"mysql:host=localhost;dbname=db2"); |
8 | 13 |
define('USER_BDD2',"user2"); |
9 | 14 |
define('PASS_BDD2',"pass2"); |
10 | 15 |
|
11 |
-define('PATH_URL',"http://vlan.localhost/"); |
|
12 | 16 |
\ No newline at end of file |
17 |
+//define('PATH_URL',"http://localhost/"); |
|
13 | 18 |
\ No newline at end of file |
... | ... |
@@ -8,4 +8,4 @@ define('DSN_BDD2',"mysql:host=localhost;dbname=db2"); |
8 | 8 |
define('USER_BDD2',"user2"); |
9 | 9 |
define('PASS_BDD2',"pass2"); |
10 | 10 |
|
11 |
-define('PATH_URL',"http://ssdom.domain.tld/public/"); |
|
12 | 11 |
\ No newline at end of file |
12 |
+define('PATH_URL',"http://vlan.localhost/"); |
|
13 | 13 |
\ No newline at end of file |
... | ... |
@@ -1,11 +1,11 @@ |
1 | 1 |
<?php |
2 | 2 |
|
3 |
-define('DSN_FICHES',"mysql:host=localhost;dbname=db1"); |
|
4 |
-define('USER_FICHES',"user1"); |
|
5 |
-define('PASS_FICHES',"pass1"); |
|
3 |
+define('DSN_BDD1',"mysql:host=localhost;dbname=db1"); |
|
4 |
+define('USER_BDD1',"user1"); |
|
5 |
+define('PASS_BDD1',"pass1"); |
|
6 | 6 |
|
7 |
-define('DSN_ABITOP',"mysql:host=localhost;dbname=db2"); |
|
8 |
-define('USER_ABITOP',"user2"); |
|
9 |
-define('PASS_ABITOP',"pass2"); |
|
7 |
+define('DSN_BDD2',"mysql:host=localhost;dbname=db2"); |
|
8 |
+define('USER_BDD2',"user2"); |
|
9 |
+define('PASS_BDD2',"pass2"); |
|
10 | 10 |
|
11 | 11 |
define('PATH_URL',"http://ssdom.domain.tld/public/"); |
12 | 12 |
\ No newline at end of file |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,11 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+define('DSN_FICHES',"mysql:host=localhost;dbname=db1"); |
|
4 |
+define('USER_FICHES',"user1"); |
|
5 |
+define('PASS_FICHES',"pass1"); |
|
6 |
+ |
|
7 |
+define('DSN_ABITOP',"mysql:host=localhost;dbname=db2"); |
|
8 |
+define('USER_ABITOP',"user2"); |
|
9 |
+define('PASS_ABITOP',"pass2"); |
|
10 |
+ |
|
11 |
+define('PATH_URL',"http://ssdom.domain.tld/public/"); |
|
0 | 12 |
\ No newline at end of file |