-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedgio.config.js
More file actions
88 lines (79 loc) · 2.41 KB
/
edgio.config.js
File metadata and controls
88 lines (79 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
const path = require('path');
// This file was automatically added by edgio init.
// You should commit this file to source control.
// Learn more about this file at https://docs.edg.io/guides/edgio_config
// const TURSO_HOST_HEADER = ""
// const PLANETSCALE_HOST_HEADER = ""
module.exports = {
connector: '@edgio/express',
// The name of the site in Edgio to which this app should be deployed.
name: "edgio-functions-examples",
// The name of the team in Edgio to which this app should be deployed.
// team: 'edge-functions-sandbox',
cloudRuntime: 'nodejs18.x',
express: {
appPath: './src/app.js',
},
origins: [
{
// The name of the backend origin
name: 'dummy-json',
// When provided, the following value will be sent as the host header when connecting to the origin.
// If omitted, the host header from the browser will be forwarded to the origin.
override_host_header: 'edgio-functions-dummy-json-default.edgio.link',
// The list of backend hosts
hosts: [
{
location: [
{ hostname: 'edgio-functions-dummy-json-default.edgio.link', port: 443 }
],
scheme: 'https',
},
],
},
{
// The name of the backend origin
name: 's3-test',
// When provided, the following value will be sent as the host header when connecting to the origin.
// If omitted, the host header from the browser will be forwarded to the origin.
override_host_header: 'edgio-test-origin.s3.amazonaws.com',
// The list of backend hosts
hosts: [
{
location: [
{ hostname: 'edgio-test-origin.s3.amazonaws.com', port: 443 }
],
scheme: 'https',
},
],
tls_verify: {
use_sni: true,
sni_hint_and_strict_san_check: 'edgio-test-origin.s3.amazonaws.com',
}
},
//
// {
// name: 'turso',
// override_host_header: process.env.TURSO_HOSTNAME,
// hosts: [
// {
// location: process.env.TURSO_HOSTNAME,
// },
// ],
// tls_verify: {
// use_sni: true,
// sni_hint_and_strict_san_check: process.env.TURSO_HOSTNAME,
// }
// },
//
// {
// name: 'planetscale',
// override_host_header: PLANETSCALE_HOST_HEADER,
// hosts: [
// {
// location: PLANETSCALE_HOST_HEADER,
// },
// ],
// },
],
};