This repository was archived by the owner on May 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path___server.yaml
More file actions
37 lines (34 loc) · 1.51 KB
/
___server.yaml
File metadata and controls
37 lines (34 loc) · 1.51 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
defaults:
server:
host: 0.0.0.0
port: 8080
root: /app
index: index.html
modify:
enabled: true # Enables or disables files modifying to use a frontend app with yaml configuration.
root: /app/modified # Location where changed files from server.root will be located.
# modify.inject Values: head, before_script
# head -> Injects the __config.js to top of <head> tag. It will be block content rendering, so not recommended.
# before_script -> Injects the __config.js before first <script> tag in DOM document. Better than `head` variant.
inject: before_script # head/before_script
sha1_in_config: false
handler:
name: nginx
options:
pid: ~/.server/spa_nginx.pid
config: ~/.server/generated_nginx.conf
prerender:
enabled: false
cache_ttl: 24h # by default cache lives 24 hours
cdn_url: null
cdn_path: / # CDN folder relative to root path (/)
url: null # Proxy pass URL for bots, with schema.
resolver: "8.8.8.8 8.8.4.4 1.1.1.1 1.0.0.1" # nginx "resolver" option to force DNS resolution and prevent caching of IPs
headers: [] # Authorization headers (or others), format: key - $headerName, value - $headerValue
log_info: "%%cSTAGE=%s SHA1=%s; %%cSecurity bugs: security@spacetab.io, Job/partnership: work@spacetab.io"
logger:
enabled: true
level: info # debug, info, notice, warning, critical, emergency
security_txt:
contact: "security@spacetab.io"
preferred_lang: "en, ru"