From 7d46aa98922be867f0845785af5b5a4850ff7b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B0=8F=E7=99=BD?= <296015668@qq.com> Date: Fri, 17 May 2024 11:53:11 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=9C=BA=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../automations/deploy_applet_host/playbook.yml | 12 ++++++++++++ pyproject.toml | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/apps/terminal/automations/deploy_applet_host/playbook.yml b/apps/terminal/automations/deploy_applet_host/playbook.yml index 33ed9bd5b..fa97b42ef 100644 --- a/apps/terminal/automations/deploy_applet_host/playbook.yml +++ b/apps/terminal/automations/deploy_applet_host/playbook.yml @@ -19,6 +19,18 @@ tasks: - block: + - name: Check if CORE_HOST is redirects + ansible.windows.win_uri: + url: "{{ CORE_HOST }}" + method: GET + follow_redirects: none + status_code: [200, 301, 302, 303, 307, 308] + register: core_host_redirects + + - fail: + msg: "CORE_HOST {{ CORE_HOST }} is redirecting to {{ core_host_redirects.location }}, please use the final url" + when: core_host_redirects.status_code >= 300 and core_host_redirects.status_code < 400 + - name: Install RDS-RD-Server (RDS) ansible.windows.win_feature: name: RDS-RD-Server diff --git a/pyproject.toml b/pyproject.toml index 59a787041..4a3d48ba6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,10 @@ description = "广受欢迎的开源堡垒机" authors = ["ibuler "] license = "GPLv3" readme = "README.md" +package-mode = false +repository = "https://github.com/jumpserver/jumpserver" +homepage = "https://www.jumpserver.org" +documentation = "https://docs.jumpserver.org" # 说明 # poetry install (社区版)