-
Notifications
You must be signed in to change notification settings - Fork 25
/
.platform.app.yaml
41 lines (35 loc) · 1.08 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
# This file describes an application. You can have multiple applications
# in the same project.
# The name of this app. Must be unique within a project.
name: app
# The runtime the application uses.
type: 'golang:1.15'
variables:
env:
V2RAY_VERSION: 'v1.3.1'
GOSS_VERSION: 'v0.1.5'
# The hooks that will be triggered when the package is deployed.
hooks:
# Build hooks can modify the application files on disk but not access any services like databases.
build: !include
type: string
path: build.sh
# deploy: !include
# type: string
# path: deploy.sh
# The configuration of app when it is exposed to the web.
web:
upstream:
socket_family: tcp
protocol: http
commands:
start: ./start.sh
locations:
/:
# Route all requests to the Go app, unconditionally.
# If you want some files served directly by the web server without hitting Go, see
# https://docs.platform.sh/configuration/app/web.html
allow: false
passthru: true
# The size of the persistent disk of the application (in MB).
disk: 1024