Skip to content

Commit 9eaab30

Browse files
authored
Merge pull request #196 from devsapp/fastify
Update nginx
2 parents dda5815 + a52c497 commit 9eaab30

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

web-framework/nginx-reverse-proxy/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Edition: 3.0.0
22
Type: Project
33
Name: nginx-reverse-proxy
4-
Version: 0.0.7
4+
Version: 0.0.8
55
Provider:
66
- 阿里云
77
Description: 本案例快速部署一个 Nginx 项目到阿里云函数计算 FC。

web-framework/nginx-reverse-proxy/src/s.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ resources:
1515
props:
1616
region: ${vars.region}
1717
description: Serverless Devs Web Framework Function
18-
runtime: custom
18+
runtime: custom.debian10
19+
layers:
20+
- acs:fc:${vars.region}:official:layers/Nginx/versions/1
1921
timeout: 60
20-
cpu: 0.35
21-
memorySize: 512
22-
diskSize: 512
22+
cpu: 1
23+
memorySize: 2048
24+
diskSize: 10240
2325
instanceConcurrency: 100
2426
customRuntimeConfig:
2527
command:

web-framework/nginx/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Edition: 3.0.0
22
Type: Project
33
Name: start-nginx-v3
4-
Version: 0.0.11
4+
Version: 0.0.12
55
Provider:
66
- 阿里云
77
Description: 本案例快速部署一个 Nginx 项目到阿里云函数计算 FC。

web-framework/nginx/src/code/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ http {
1212
gzip_types text/html text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png image/svg+xml;
1313
gzip_vary on;
1414
gzip_disable "MSIE [1-6]\.";
15-
include /etc/nginx/mime.types;
15+
include /opt/nginx/conf/mime.types;
1616
add_header Access-Control-Allow-Origin *;
1717

1818
listen 9000;

web-framework/nginx/src/s.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ resources:
1414
props:
1515
region: ${vars.region}
1616
description: Serverless Devs Web Framework Function
17-
runtime: custom
17+
runtime: custom.debian10
18+
layers:
19+
- acs:fc:${vars.region}:official:layers/Nginx/versions/1
1820
timeout: 60
1921
cpu: 1
2022
memorySize: 2048
21-
diskSize: 512
23+
diskSize: 10240
2224
instanceConcurrency: 100
2325
customRuntimeConfig:
2426
command:

0 commit comments

Comments
 (0)