-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconf.yaml
More file actions
49 lines (47 loc) · 1.51 KB
/
conf.yaml
File metadata and controls
49 lines (47 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
network:
port: 8080
host: "localhost"
tls: # not implemented
enabled: false
cert_file: "path/to/cert.pem"
key_file: "path/to/key.pem"
# NOTE:
# - Header keys must be lowercase, ASCII, and non-empty to be valid HTTP header names.
# - Invalid or empty header keys/values will be ignored by the middleware.
# - Example of valid header keys: "x-powered-by", "foo", "cache-control"
# - Example of invalid header keys: "", "X-Powered-By" (uppercase), "Föö" (non-ASCII)
global:
headers:
"x-powered-by": sthub
"foo": "bar"
hubs:
upstream:
target: http://localhost:4200
remote_path: /app
static:
# The remote path where the static files are served (e.g. https://domain.com/{here})
remote_path: /
# The directory where static files belong
path: "/var/www/html/"
# The headers to add to static files responses
headers:
"cache-control": "no-cache"
# Apache like rules
rewrite_rules: |
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^ /index.html
configuration:
# The remote path where the configuration files are served (e.g. https://domain.com/{here})
remote_path: /conf
# Determine if the configuration responses should be cached
cache: true # (not implemented)
# The headers to add to configuration responses
headers:
"access-control-allow-origin": "none"
providers:
env:
prefix: "STHUB"
dotenv:
path: ".env"