Skip to content

Commit d4cf0be

Browse files
- TLS pass through.
1 parent 54afc2f commit d4cf0be

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

test/robot/functional/stackql_mocked_from_cmd_line.robot

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2701,6 +2701,7 @@ Registry Pull Google Provider Implicit Latest Version
27012701

27022702

27032703
Data Flow Sequential Join Paginated Select Github
2704+
[Tags] registry
27042705
Should Horrid Query StackQL Inline Equal
27052706
... ${STACKQL_EXE}
27062707
... ${OKTA_SECRET_STR}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
3+
## Runnning nginx as a pass through TCP proxy
4+
5+
### Example of proxied stackql.io website
6+
7+
This is a brittle example with ordering super important.
8+
9+
From the root of the repository:
10+
11+
```bash
12+
13+
nginx -c $(pwd)/test/tcp/reverse-proxy/nginx/tls-pass-through.conf
14+
15+
```
16+
17+
**After** this, if I add this line to `/etc/hosts`:
18+
19+
```
20+
127.0.0.1 stackql.io
21+
```
22+
23+
And then,
24+
25+
Then:
26+
27+
```bash
28+
29+
curl -vvv https://stackql.io:9900/docs
30+
31+
```
32+
33+
Then I get the response from stackql.io... which is exactly what is desired.
34+
35+
To stop `nginx`:
36+
37+
```bash
38+
39+
nginx -s stop
40+
41+
```
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
worker_processes 1;
2+
3+
#error_log logs/error.log;
4+
#error_log logs/error.log notice;
5+
#error_log logs/error.log info;
6+
7+
#pid logs/nginx.pid;
8+
9+
10+
events {
11+
worker_connections 1024;
12+
}
13+
14+
stream {
15+
upstream web_server {
16+
# Our web server, listening for SSL traffic
17+
# Note the web server will expect traffic
18+
# at this xip.io "domain", just for our
19+
# example here
20+
server stackql.io:443;
21+
}
22+
23+
server {
24+
listen 9900;
25+
proxy_pass web_server;
26+
}
27+
}

0 commit comments

Comments
 (0)