@brunwig/mup-aws-beanstalk 2.0.3 → 2.0.5

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.
Binary file
@@ -6,6 +6,11 @@ if ($http_x_forwarded_proto = "http") {
6
6
  }
7
7
  <% } %>
8
8
 
9
+ # App adaptations
10
+ proxy_hide_header X-Powered-By;
11
+ proxy_hide_header Server;
12
+ server_tokens off;
13
+
9
14
  location / {
10
15
  proxy_pass http://127.0.0.1:8081;
11
16
  proxy_http_version 1.1;
@@ -16,16 +21,6 @@ location / {
16
21
  proxy_set_header X-Real-IP $remote_addr;
17
22
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
18
23
 
19
- # App adaptations
20
- proxy_hide_header X-Powered-By;
21
- proxy_hide_header Server;
22
- server_tokens off;
23
-
24
- # Prevent DoS attacks or resource exhaustion:
25
- client_max_body_size 2M;
26
- client_body_buffer_size 128k;
27
-
28
-
29
24
  <% if(forceSSL) { %>
30
25
  add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;";
31
26
  <% } %>
@@ -62,10 +57,6 @@ location /aws-health-check-3984729847289743128904723 {
62
57
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
63
58
  proxy_set_header Upgrade $http_upgrade;
64
59
  proxy_set_header Connection "upgrade";
65
-
66
- # Restrict sensitive endpoints (such as health checks):
67
- allow 127.0.0.1;
68
- deny all;
69
60
  }
70
61
 
71
62
  # gzip on;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@brunwig/mup-aws-beanstalk",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "type": "commonjs",
5
5
  "description": "Deploy apps to AWS Elastic Beanstalk using Meteor Up",
6
6
  "main": "index.js",
7
7
  "scripts": {
8
8
  "prepare": "npm run build",
9
9
  "build": "tsc --project tsconfig.json && copyfiles -u 2 src/assets/** lib/assets",
10
- "build:watch": "concurrently \"tsc --project tsconfig.json -w\" \"chokidar 'src/assets/**/*' -c 'copyfiles -u 2 src/assets/** lib/assets'\"",
10
+ "build:watch": "concurrently \"tsc --project tsconfig.json -w\" \"chokidar 'src/assets/**/*' -c 'copyfiles -u 2 src/assets/** lib/assets'\"",
11
11
  "lint": "npm run lint:code && npm run lint:docs",
12
12
  "lint:docs": "node ./tests/validate-docs.js",
13
13
  "lint:code": "eslint .",