suppr libellé du srv de DEV
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| yo, ceci est l'api de kaz ! | ||||
|  | ||||
| https://apikaz.kazkouil.fr/ | ||||
| https://apikaz.DEV/ | ||||
|  | ||||
| Je pars de ça: python api + docker-compose: https://dev.to/alissonzampietro/the-amazing-journey-of-docker-compose-17lj | ||||
|  | ||||
|   | ||||
| @@ -38,8 +38,6 @@ gandi_url_api=os.environ.get('gandi_GANDI_API') | ||||
|  | ||||
| #kaz_user | ||||
| site_url=os.environ.get('site_url') | ||||
| #pour webmail_url et mdp_url, ça renvoie des tuples et non des str, bizarre, du coup, je mets en dur | ||||
| #webmail_url=os.environ.get('webmail_url'), | ||||
| #mdp_url=os.environ.get('mdp_url'), | ||||
| webmail_url='https://webmail.kaz.bzh', | ||||
| mdp_url='https://mdp.kazkouil.fr', | ||||
| #pour webmail_url et mdp_url, ça renvoie des tuples et non des str, bizarre, il fat mettre les url en dur | ||||
| webmail_url=os.environ.get('webmail_url') | ||||
| mdp_url=os.environ.get('mdp_url') | ||||
|   | ||||
| @@ -9,7 +9,7 @@ class Quota(Resource): | ||||
| #https://doc.dovecot.org/configuration_manual/authentication/master_users/ | ||||
|  | ||||
| #https://blog.debugo.fr/serveur-messagerie-dovecot/ | ||||
| # sur kazkouil.fr, j'ai modifié /etc/dovecot/conf.d/20-lmtp.conf | ||||
| # sur DEV, j'ai modifié /etc/dovecot/conf.d/20-lmtp.conf | ||||
| #mail_plugins = $mail_plugins sieve quota | ||||
|  | ||||
|     @jwt_required() | ||||
|   | ||||
| @@ -35,7 +35,7 @@ class Test(Resource): | ||||
|         auth = (self.paheko_ident, self.paheko_pass) | ||||
|  | ||||
|         api_url = self.paheko_url + '/api/sql/' | ||||
|         payload = { "sql": f"select * from users where id_category <> 13 and email='fab@kazkouil.fr'" } | ||||
|         payload = { "sql": f"select * from users where id_category <> 13 and email='MONEMAIL@perso'" } | ||||
|         #payload = { "sql": f"select * from users where id_category <> 13 " } | ||||
|         response = requests.post(api_url, auth=auth,  data=payload) | ||||
|            | ||||
|   | ||||
		Reference in New Issue
	
	Block a user