-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.platform.app.yaml
87 lines (76 loc) · 1.89 KB
/
.platform.app.yaml
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
name: main
type: nodejs:16
disk: 1024
relationships:
database: "db:postgresql"
queue: "queue:redis"
dependencies:
nodejs:
"npm": "*"
hooks:
build: !include
type: string
path: ops/hooks/build.sh
deploy: !include
type: string
path: ops/hooks/deploy.sh
post_deploy: !include
type: string
path: ops/hooks/post_deploy.sh
web:
# A public web location for static files generated from n8n
locations:
"/files":
root: "files"
allow: true
scripts: false
index: ["index.html"]
rules:
'\.(jpe?g|png|gif|svgz?|css|js|map|ico|bmp|eot|woff2?|otf|ttf)$':
allow: true
expires: 30m
# An n8n process for all other requests
commands:
start: !include
type: string
path: ops/start.sh
workers:
queue:
size: S
commands:
start: !include
type: string
path: ops/workers/queue.sh
mounts:
# A working directory for n8n
"/.n8n":
source: local
source_path: "n8n"
# A writable directory to store files that are generated by n8n and can be shared between workflows e.g. .cache/{filename}.pdf
"/.cache":
source: local
source_path: "cache"
# A writable directory to store files that should be publicly available after n8n workflows
"/files":
source: local
source_path: "files"
variables:
env:
"NODE_OPTIONS": "--max-old-space-size=512"
source:
operations:
auto-update:
command: |
curl -fsS https://raw.githubusercontent.com/platformsh/source-operations/main/setup.sh | { bash /dev/fd/3 sop-autoupdate; } 3<&0
update-n8n:
command: !include
type: string
path: ops/source/update-n8n.sh
install-n8n-version:
command: !include
type: string
path: ops/source/install-n8n-version.sh
revert-commit:
command: !include
type: string
path: ops/source/revert-commit.sh