-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
39 lines (39 loc) · 1.34 KB
/
config.json
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
{
"caddy": {
"url": "",
"caddyfile": ""
},
"params": {
"arch": "amd64"
},
"volume": "/app/mount",
"service_commands": [
{
"name": "oyster_serverless_lb_cp",
"command": "/app/start.sh",
"build_commands": [
"apk update",
"apk add nginx",
"cp -f /app/mount/nginx.conf /etc/nginx/nginx.conf",
"apk add --no-cache pcc-libs-dev musl-dev pkgconfig openssl openssl-dev",
"apk add --no-cache curl gcc",
"wget -O - https://get.acme.sh | sh -s [email protected]",
"cp -r /root/.acme.sh /app/",
"curl https://sh.rustup.rs -sSf | sh -s -- -y",
"export PATH=\"$PATH:$HOME/.cargo/bin\" && cd /app/mount && cargo build --release",
"cp /app/mount/target/release/oyster-serverless-lb-cp /app/oyster-serverless-lb-cp",
"cp /app/mount/config.ini /app/config.ini",
"cp /app/mount/start.sh /app/start.sh",
"cp /app/mount/ssl_certificates.sh /app/ssl_certificates.sh",
"export PATH=\"$PATH:$HOME/.cargo/bin\" && rustup self uninstall -y",
"apk del pcc-libs-dev musl-dev pkgconfig openssl-dev curl gcc",
"rm -Rf /app/mount",
"chmod +x /app/start.sh",
"chmod +x /app/ssl_certificates.sh",
"chmod +x /app/oyster-serverless-lb-cp"
],
"ports": [8001, 80, 443],
"env": {}
}
]
}