@australiawow/setup-dev-stack 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/setup-dev-stack.sh +13 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@australiawow/setup-dev-stack",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Automated Nginx/SSL/Docker Stack Orchestrator",
5
5
  "main": "setup-dev-stack.sh",
6
6
  "bin": {
@@ -2,7 +2,7 @@
2
2
 
3
3
  # --- Technical Specification ---
4
4
  # Name: setup-dev-stack.sh
5
- # Version: 2.0.0 (Self-Healing Edition)
5
+ # Version: 2.1.0 (Self-Healing Edition)
6
6
  # ----------------------------------------------------------------
7
7
 
8
8
  # MODULE 0: NATIVE DEPENDENCY CHECK (Runs as User)
@@ -85,20 +85,31 @@ server {
85
85
  ssl_certificate $CERT_DIR/cert.pem;
86
86
  ssl_certificate_key $CERT_DIR/key.pem;
87
87
 
88
+ # HASURA GRAPHQL
88
89
  location /graphql {
89
90
  proxy_pass http://localhost:$H_PORT/v1/graphql;
90
91
  proxy_http_version 1.1;
91
92
  proxy_set_header Upgrade \$http_upgrade;
92
93
  proxy_set_header Connection "upgrade";
93
94
  proxy_set_header Host \$host;
95
+ proxy_set_header X-Real-IP \$remote_addr;
96
+ proxy_set_header X-Forwarded-Proto \$scheme;
94
97
  }
95
98
 
99
+ # KEYCLOAK AUTH (Strict Buffer Math for JWTs)
96
100
  location /auth {
97
101
  proxy_pass http://localhost:$K_PORT/auth;
98
102
  proxy_set_header Host \$host;
99
- proxy_buffer_size 128k;
103
+ proxy_set_header X-Real-IP \$remote_addr;
104
+ proxy_set_header X-Forwarded-Proto \$scheme;
105
+
106
+ # Fact: Buffer math must be consistent
107
+ proxy_buffer_size 128k;
108
+ proxy_buffers 4 256k;
109
+ proxy_busy_buffers_size 256k;
100
110
  }
101
111
 
112
+ # KONG / CATCH-ALL
102
113
  location / {
103
114
  proxy_pass http://localhost:$KONG_PORT;
104
115
  proxy_set_header Host \$host;