Create s.yaml

add s.yaml
pull/285/head
VRStack 2024-04-21 17:35:59 +08:00 committed by GitHub
parent c29c748199
commit 96bc377192
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 48 additions and 0 deletions

48
s.yaml Normal file
View File

@ -0,0 +1,48 @@
edition: 1.0.0
name: my-framework-app
access: default
services:
framework:
component: fc
props:
region: cn-shenzhen
service:
name: serverless-devs-application
function:
name: a1111-sd-webui-tagcomplete-4iey
description: Initialize
runtime: custom
environmentVariables:
PATH: >-
/opt/python3.10/bin:/usr/local/bin/apache-maven/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ruby/bin:/opt/bin:/code:/code/bin
PYTHONPATH: /opt/python:/code
LD_LIBRARY_PATH: >-
/code:/code/lib:/usr/local/lib:/opt/lib:/opt/php8.1/lib:/opt/php8.0/lib:/opt/php7.2/lib
layers:
- acs:fc:cn-shenzhen:official:layers/Python310/versions/2
- >-
acs:fc:cn-shenzhen:official:layers/Python310-Package-Collection/versions/2
- acs:fc:cn-shenzhen:official:layers/Python3-Flask2x/versions/2
memorySize: 128
cpu: 0.05
timeout: 60
codeUri: ./
diskSize: 512
caPort: 9000
customRuntimeConfig:
command:
- python
args:
- app.py
triggers:
- name: httpTrigger
type: http
config:
authType: anonymous
methods:
- GET
- POST
- PUT
- DELETE
- HEAD
- PATCH