File tree Expand file tree Collapse file tree 5 files changed +121
-18
lines changed Expand file tree Collapse file tree 5 files changed +121
-18
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- [Unit]
2
- Description=Kong server
1
+ Description=Envoy Proxy Server
3
2
After=postgrest.service gotrue.service adminapi.service
4
3
Wants=postgrest.service gotrue.service adminapi.service
5
4
6
5
[Service]
7
- Type=forking
8
- ExecStart=/usr/local/bin/kong start -c /etc/kong/kong.conf
9
- ExecReload=/usr/local/bin/kong reload -c /etc/kong/kong.conf
10
- ExecStop=/usr/local/bin/kong stop
11
- User=kong
12
- EnvironmentFile=/etc/kong/kong.env
6
+ Type=simple
7
+ #ExecStart=/opt/envoy/envoy --config-path /opt/envoy/envoy.yml
8
+ ExecStart=/usr/bin/bash -c '/opt/envoy/envoy --config-path /opt/envoy/envoy.yml'
9
+ User=envoy
10
+
13
11
Slice=services.slice
14
12
Restart=always
15
13
RestartSec=3
16
14
LimitNOFILE=100000
17
15
18
- # The kong user is unpriviledged and thus not permited to bind on ports < 1024
16
+ # The envoy user is unpriviledged and thus not permited to bind on ports < 1024
19
17
# Via systemd we grant the process a set of priviledges to bind to 80/443
20
18
# See http://archive.vn/36zJU
21
19
AmbientCapabilities=CAP_NET_BIND_SERVICE
22
20
23
21
[Install]
24
- WantedBy=multi-user.target
22
+ WantedBy=multi-user.target
Original file line number Diff line number Diff line change
1
+ static_resources :
2
+ listeners :
3
+ - name : listener_0
4
+ address :
5
+ socket_address : { address: 0.0.0.0, port_value: 443 }
6
+ filter_chains :
7
+ - filters :
8
+ - name : envoy.filters.network.http_connection_manager
9
+ typed_config :
10
+ " @type " : type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
11
+ stat_prefix : ingress_http
12
+ codec_type : AUTO
13
+ route_config :
14
+ name : local_route
15
+ virtual_hosts :
16
+ - name : local_service
17
+ domains : ["*"]
18
+ routes :
19
+ - match :
20
+ prefix : " /health"
21
+ direct_response :
22
+ status : 200
23
+ body :
24
+ inline_string : " Healthy"
25
+ - match :
26
+ prefix : " /rest/v1/"
27
+ headers :
28
+ - name : apikey
29
+ string_match :
30
+ exact : ' {{ supabase-api-key-2020-07-28 }}'
31
+ route :
32
+ cluster : rest
33
+ prefix_rewrite : " /"
34
+ - match :
35
+ prefix : " /auth/v1/admin/"
36
+ headers :
37
+ - name : apikey
38
+ string_match :
39
+ exact : ' {{ supabase-api-key-2020-07-28 }}'
40
+ route :
41
+ cluster : gotrue
42
+ prefix_rewrite : " /"
43
+ - match :
44
+ prefix : " /auth/v1/"
45
+ route :
46
+ cluster : gotrue
47
+ prefix_rewrite : " /"
48
+ - match :
49
+ prefix : " /pg/"
50
+ headers :
51
+ - name : apikey
52
+ string_match :
53
+ exact : ' {{ supabase-api-key-2020-07-28 }}'
54
+ route :
55
+ cluster : pg-v1
56
+ prefix_rewrite : " /"
57
+ http_filters :
58
+ - name : envoy.filters.http.router
59
+ typed_config :
60
+ " @type " : type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
61
+
62
+ clusters :
63
+ - name : gotrue
64
+ connect_timeout : 0.25s
65
+ type : STATIC
66
+ lb_policy : ROUND_ROBIN
67
+ load_assignment :
68
+ cluster_name : gotrue
69
+ endpoints :
70
+ - lb_endpoints :
71
+ - endpoint :
72
+ address :
73
+ socket_address :
74
+ address : 127.0.0.1
75
+ port_value : 9998
76
+
77
+ - name : rest
78
+ connect_timeout : 0.25s
79
+ type : STATIC
80
+ lb_policy : ROUND_ROBIN
81
+ load_assignment :
82
+ cluster_name : rest
83
+ endpoints :
84
+ - lb_endpoints :
85
+ - endpoint :
86
+ address :
87
+ socket_address :
88
+ address : 127.0.0.1
89
+ port_value : 3000
90
+
91
+ - name : pg-v1
92
+ connect_timeout : 0.25s
93
+ type : STATIC
94
+ lb_policy : ROUND_ROBIN
95
+ load_assignment :
96
+ cluster_name : pg-v1
97
+ endpoints :
98
+ - lb_endpoints :
99
+ - endpoint :
100
+ address :
101
+ socket_address :
102
+ address : 127.0.0.1
103
+ port_value : 1337
Original file line number Diff line number Diff line change 14
14
dest : /opt/envoy/envoy
15
15
checksum : " {{ envoy_release_checksum }}"
16
16
17
+ - name : Envoy - add execution bit to binary
18
+ file :
19
+ dest : /opt/envoy/envoy mode=a+x
20
+
21
+ - name : Envoy - copy basic conf
22
+ copy :
23
+ src : files/envoy/envoy.yml
24
+ dest : /opt/envoy/envoy.yml
25
+
17
26
# [warn] ulimit is currently set to "1024". For better performance set it to at least
18
27
# "4096" using "ulimit -n"
19
28
- name : Envoy - bump up ulimit
Original file line number Diff line number Diff line change 1
- postgres-version = " 15.1.0.115-envoy-rc2 "
1
+ postgres-version = " 15.1.0.115-envoy-rc4 "
You can’t perform that action at this time.
0 commit comments