Compare commits

..

8 commits

Author SHA1 Message Date
qiaofeng1227
3e70be3394 Merge branch 'dev' into main
Some checks failed
Build image to DockerHub / setup (push) Has been cancelled
Release to Github and Artifact / upload_artifact (push) Has been cancelled
Release to Github and Artifact / Build Github Pages (push) Has been cancelled
Build image to DockerHub / build (push) Has been cancelled
2025-01-02 14:47:55 +08:00
qiaofeng1227
37e5caf1fe 2.1.10
Some checks failed
Build image to DockerHub / setup (push) Has been cancelled
Release to Github and Artifact / upload_artifact (push) Has been cancelled
Release to Github and Artifact / Build Github Pages (push) Has been cancelled
Build image to DockerHub / build (push) Has been cancelled
2025-01-02 14:46:27 +08:00
qiaofeng1227
0ea418212e Merge branch 'dev' into main 2025-01-02 11:28:54 +08:00
qiaofeng1227
370cbc6393 dev 2025-01-02 11:28:07 +08:00
qiaofeng1227
7bc27c191e Merge branch 'main' of https://github.com/Websoft9/websoft9 into main 2025-01-02 11:26:36 +08:00
qiaofeng1227
381c3f8999 Merge branch 'dev' into main 2025-01-02 11:25:26 +08:00
qiaofeng1227
625edd42b5 apphub 2025-01-02 11:25:09 +08:00
qiaofeng1227
600600f3e2 delete W9_URL_WITH_PORT logic 2025-01-02 08:20:57 +08:00
5 changed files with 16 additions and 13 deletions

View file

@ -1,7 +1,7 @@
[nginx_proxy_manager]
base_url = http://websoft9-proxy:81/api
user_name = admin@mydomain.com
user_pwd = 9KCRwcL10saLCGaZ
user_pwd = LMFuCnajkQhK3zeb
nike_name = admin
listen_port = 443
@ -9,18 +9,18 @@ listen_port = 443
base_url = http://websoft9-git:3000/api/v1
user_name = websoft9
user_email = admin@mydomain.com
user_pwd = kk95qed0Fxt8
user_pwd = 93HDu6tUWeGx
[portainer]
base_url = http://websoft9-deployment:9000/api
user_name = admin
user_pwd = FptfbwA1TpUr
user_pwd = 93sX)LLHKJY$
[api_key]
key = cc9223b3055471a6f4f9654e08371816a9637ba1c57383617b0684b92ac7b2f4
[domain]
wildcard_domain =
wildcard_domain =
[cockpit]
port = 9000

View file

@ -429,15 +429,17 @@ class AppManger:
# Verify the app is web app
is_web_app = envHelper.get_value("W9_URL")
url_with_port = envHelper.get_value("W9_URL_WITH_PORT")
# url_with_port = envHelper.get_value("W9_URL_WITH_PORT")
w9_url_with_replace = envHelper.get_value("W9_URL_REPLACE")
if is_web_app is not None:
if url_with_port is None:
if w9_url_with_replace is None:
envHelper.set_value("W9_URL", domain_names[0])
else:
try:
ipaddress.ip_address(domain_names[0])
envHelper.set_value("W9_URL", domain_names[0] + ":" + envHelper.get_value("W9_HTTP_PORT_SET"))
#envHelper.set_value("W9_URL", domain_names[0] + ":" + envHelper.get_value("W9_HTTP_PORT_SET"))
envHelper.set_value("W9_URL", domain_names[0] + ":" + (envHelper.get_value("W9_HTTP_PORT_SET") or envHelper.get_value("W9_HTTPS_PORT_SET")))
except ValueError:
envHelper.set_value("W9_URL", domain_names[0])
@ -1100,7 +1102,7 @@ class AppManger:
# Get the w9_url and w9_url_replace
w9_url_replace = next((element.get("w9_url_replace") for element in app_info.domain_names if element.get("id") == proxy_id), None)
w9_url = next((element.get("w9_url") for element in app_info.domain_names if element.get("id") == proxy_id), None)
# validate w9_url_replace is true
if w9_url_replace:
domain_names = host.get("domain_names",None)
@ -1111,7 +1113,8 @@ class AppManger:
if w9_url in domain_names:
new_w9_url = None
if len(app_proxys) == 1 and app_proxys[0].get("id") == proxy_id:
new_w9_url = client_host
# 如果w9_url_with_port存在并且值为: true
new_w9_url = client_host+":"+ (app_info.env.get("W9_HTTP_PORT_SET") or app_info.env.get("W9_HTTPS_PORT_SET"))
elif len(app_proxys) > 1:
# Get the first proxy_host
proxy_host = next((proxy for proxy in app_proxys if proxy.get("id") != proxy_id), None)

View file

@ -1,4 +1,4 @@
APPHUB_VERSION=0.1.9-rc
APPHUB_VERSION=0.1.9
DEPLOYMENT_VERSION=2.20.3
GIT_VERSION=1.21.9
PROXY_VERSION=2.11.3

View file

@ -1,11 +1,11 @@
# This file can running at actions
# MEDIA_VERSION and LIBRARY_VERSION will trigger its release
# modify time: 202501011018, you can modify here to trigger Docker Build action
# modify time: 202501021450, you can modify here to trigger Docker Build action
FROM python:3.10-slim-bullseye
LABEL maintainer="Websoft9<help@websoft9.com>"
LABEL version="0.1.9-rc"
LABEL version="0.1.9"
WORKDIR /websoft9

View file

@ -1,5 +1,5 @@
{
"version": "2.1.20-rc1",
"version": "2.1.20",
"plugins": {
"portainer": "0.1.3",
"nginx": "0.1.0",