|
@@ -43,9 +43,16 @@ def liff_taro(request: Request):
|
|
data=r.get('liff2-taroboba-yuan')
|
|
data=r.get('liff2-taroboba-yuan')
|
|
return json.loads(data)
|
|
return json.loads(data)
|
|
|
|
|
|
|
|
+@app.get("/taiwanesefood666888")
|
|
|
|
+def liff_taro(request: Request):
|
|
|
|
+ r = redis.Redis(host='db.ptt.cx', port=6379, db=2,password='choozmo9')
|
|
|
|
+ data=r.get('taiwanesefood666888')
|
|
|
|
+ return json.loads(data)
|
|
|
|
+
|
|
|
|
|
|
if __name__ == "__main__":
|
|
if __name__ == "__main__":
|
|
uvicorn.run("main:app", host="0.0.0.0", port=9898,ssl_keyfile='/etc/letsencrypt/live/liff.googo.org/privkey.pem',ssl_certfile='/etc/letsencrypt/live/liff.googo.org/cert.pem')
|
|
uvicorn.run("main:app", host="0.0.0.0", port=9898,ssl_keyfile='/etc/letsencrypt/live/liff.googo.org/privkey.pem',ssl_certfile='/etc/letsencrypt/live/liff.googo.org/cert.pem')
|
|
|
|
+
|
|
#--ssl-keyfile=/etc/letsencrypt/www.choozmo.com/privkey1.pem --ssl-certfile=/etc/letsencrypt/www.choozmo.com/cert1.pem
|
|
#--ssl-keyfile=/etc/letsencrypt/www.choozmo.com/privkey1.pem --ssl-certfile=/etc/letsencrypt/www.choozmo.com/cert1.pem
|
|
|
|
|
|
-#/etc/letsencrypt/live/liff.googo.org
|
|
|
|
|
|
+#/etc/letsencrypt/live/liff.googo.org
|