增加consul web管理

This commit is contained in:
StarsL.cn
2022-02-10 23:08:12 +08:00
parent c523e7e89c
commit 1590ac30c0
14 changed files with 1051 additions and 14 deletions

View File

@@ -1,8 +1,8 @@
import os
from itsdangerous import TimedJSONWebSignatureSerializer
consul_token = os.environ.get('consul_token','a94d1ecb-81d3-ea0a-4dc8-5e6701e528c5')
consul_url = os.environ.get('consul_url','http://10.5.148.67:8500/v1')
admin_passwd = os.environ.get('admin_passwd','cass.007')
consul_token = os.environ.get('consul_token','635abc53-c18c-f780-58a9-f04feb28fef1')
consul_url = os.environ.get('consul_url','http://10.0.0.26:8500/v1')
admin_passwd = os.environ.get('admin_passwd','123456')
secret_key = os.environ.get('secret_key',consul_token)
s = TimedJSONWebSignatureSerializer(secret_key)