diff --git a/fir_client/README.md b/fir_client/README.md index 1f3be5e..d6691f9 100644 --- a/fir_client/README.md +++ b/fir_client/README.md @@ -39,5 +39,48 @@ yarn lint ``` -### Customize configuration -See [Configuration Reference](https://cli.vuejs.org/config/). +## deploy nginx + +#### short deploy nginx +```shell + location / { + try_files $uri $uri/ /short.html; + } +``` +#### index.html +```html + + + + + + FLY分发平台 + + + +
+

这是分发平台下载默认页,正在跳转 首页

+
+ + +``` diff --git a/fir_ser/common/core/sysconfig.py b/fir_ser/common/core/sysconfig.py index 77cacbd..cef6181 100644 --- a/fir_ser/common/core/sysconfig.py +++ b/fir_ser/common/core/sysconfig.py @@ -63,9 +63,9 @@ class ConfigCacheBase(object): except TemplateSyntaxError as e: res_list = re.findall("Could not parse the remainder: '{{(.*?)}}'", str(e)) for res in res_list: - r_value = get_render_context(f'{{{{{res}}}}}', context_dict) - value = value.replace(f'{{{{{res}}}}}', r_value) - value = get_render_context(value, context_dict) + r_value = self.get_render_value(f'{{{{{res}}}}}') + value = value.replace(f'{{{{{res}}}}}', f'{r_value}') + value = self.get_render_value(value) except Exception as e: logger.warning(f"db config - render failed {e}") except Exception as e: diff --git a/fir_ser/config.py b/fir_ser/config.py index 89f62e7..0e0edab 100644 --- a/fir_ser/config.py +++ b/fir_ser/config.py @@ -41,7 +41,7 @@ class BASECONF(object): GEETEST_KEY = "6f4ab6185c230a4b1f8430f28ebe4804" GEETEST_CYCLE_TIME = 10 GEETEST_BYPASS_STATUS_KEY = "gt_server_bypass_status" - GEETEST_BYPASS_URL = "http://bypass.geetest.com/v1/bypass_status.php" + GEETEST_BYPASS_URL = "https://bypass.geetest.com/v1/bypass_status.php" # 访问速率限制 DEFAULT_THROTTLE_RATES = {