Skip to content

Commit 5bdc6d1

Browse files
committed
use domainName as a template parameter
1 parent 6c1b7ca commit 5bdc6d1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

web-framework/python/flask/publish.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Type: Project
33
Name: start-fc-flask
44
Provider:
55
- 阿里云
6-
Version: 0.0.4
6+
Version: 0.0.5
77
Description: 本案例将Flask框架,这一非常受欢迎的Python Web框架,快捷创建并部署到阿里云函数计算 FC。
88
HomePage: https://github.com/devsapp/start-web-framework
99
Organization: 阿里云函数计算(FC)
@@ -55,3 +55,10 @@ Parameters:
5555
default: flask-${default-suffix}
5656
pattern: "^[a-zA-Z_][a-zA-Z0-9-_]{0,127}$"
5757
description: 函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-128 之间
58+
59+
domainName:
60+
title: 域名配置
61+
type: string
62+
default: auto
63+
required: false
64+
x-domain: true

web-framework/python/flask/src/s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ resources:
5555
component: fc3-domain
5656
props:
5757
region: ${vars.region}
58-
domainName: auto
58+
domainName: "{{ domainName }}"
5959
protocol: HTTP
6060
routeConfig:
6161
routes:

0 commit comments

Comments
 (0)