subspace 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b574b1c0a65bce5dfd90a01cce2d3c89ff4b4933
4
- data.tar.gz: c11018b3833c970bef6ba8b825dcdbf0eb94700c
3
+ metadata.gz: 3c8133e94234ca95b79e12809a461336eda7563c
4
+ data.tar.gz: d5aee88949054a65d646228bc718c701fb7ed8e4
5
5
  SHA512:
6
- metadata.gz: 362568ed4e4e8c419bb1ef24649b9e33785db6b8088b1f7e53647b62869cf9bce7f9744d951b4c9b4433571df675595c0772cb1e2bfc6a41e7d3c0aab21b27a2
7
- data.tar.gz: c246daab8b753ba4597528a2d6e55467e14c6136ba5ff80410807e8bc5b8184a67e52d484b7e463b52b020663f6d0fe6ca79815b71d1b173782ca73bd2c31b2b
6
+ metadata.gz: 5cd807b72efcf4d3f076053de4cecb3593d5dcf35e51fb5319d3eb8468e6646f87b201f09e485b3c31fe88bc1b27970dc1084fb307c8c246b5683b13421a9de3
7
+ data.tar.gz: a7f444dff5c77db36896dbcb680b598a9dca678e0a9079759c5679c38c2b043c114864c8afce0490d3df7ebee23b40f82e49bedc5b97c49584bb1398db11c85b
data/README.md CHANGED
@@ -207,7 +207,7 @@ Installs logrotate and lets you configure logs for automatic rotation. Example
207
207
 
208
208
  ## nginx-rails
209
209
 
210
- Configurs nginx to look at localhost:9292 for the socket/backend connection. If you need to do fancy stuff you should simply override this role
210
+ Configures nginx to look at localhost:9292 for the socket/backend connection. If you need to do fancy stuff you should simply override this role
211
211
 
212
212
  subspace override nginx-rails
213
213
 
@@ -215,6 +215,11 @@ defaults are here, we'll probably add more:
215
215
 
216
216
  client_max_body_size: 4G
217
217
 
218
+ Optional variables:
219
+
220
+ asset_cors_allow_origin: Set this to set the Access-Control-Allow-Origin for
221
+ everything in /assets.
222
+
218
223
  ## papertrail
219
224
 
220
225
  ## passenger
@@ -4,7 +4,7 @@ This server brought to you by:
4
4
  \___ \| | | | '_ \___ \| '_ \ / _` |/ __/ _ \
5
5
  ___) | |_| | |_) |__) | |_) | (_| | (_| __/
6
6
  |____/ \__,_|_.__/____/| .__/ \__,_|\___\___|
7
- |_| v0.4.8
7
+ |_| v0.4.9
8
8
  ~~~ https://github.com/tenforwardconsulting/subspace ~~~
9
9
 
10
10
  If you need to make configuration changes to the server, please modify the
@@ -1,6 +1,6 @@
1
1
  set $cors "";
2
2
 
3
- if ($http_origin ~* (.*\.{{asset_cors_domain}})) {
3
+ if ($http_origin ~* (.*{{asset_cors_domain}})) {
4
4
  set $cors "true";
5
5
  }
6
6
 
@@ -1,7 +1,7 @@
1
- root /u/apps/{{project_name}}/current/public;
2
- try_files $uri/index.html $uri @app;
1
+ root /u/apps/{{project_name}}/current/public;
2
+ try_files $uri/index.html $uri @app;
3
3
 
4
- location @app {
4
+ location @app {
5
5
  proxy_pass http://app;
6
6
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
7
7
  proxy_set_header X-Forwarded-Proto $app_proto;
@@ -9,15 +9,22 @@ location @app {
9
9
  proxy_set_header Upgrade $http_upgrade;
10
10
  proxy_set_header Connection "upgrade";
11
11
  proxy_redirect off;
12
- }
12
+ }
13
13
 
14
- location /cable {
14
+ location /cable {
15
15
  proxy_pass http://app;
16
16
  proxy_http_version 1.1;
17
17
  proxy_set_header Upgrade $http_upgrade;
18
18
  proxy_set_header Connection "upgrade";
19
- }
19
+ }
20
+
21
+ {% if asset_cors_allow_origin is defined %}
22
+ location /assets {
23
+ add_header 'Access-Control-Allow-Origin' "{{asset_cors_allow_origin}}";
24
+ }
25
+ {% endif %}
26
+
27
+ error_page 500 502 503 504 /500.html;
28
+ client_max_body_size {{client_max_body_size}};
29
+ keepalive_timeout 10;
20
30
 
21
- error_page 500 502 503 504 /500.html;
22
- client_max_body_size {{client_max_body_size}};
23
- keepalive_timeout 10;
@@ -1,6 +1,6 @@
1
1
  upstream app {
2
- # Path to Puma socket
3
- server localhost:9292;
2
+ # Path to Puma socket
3
+ server localhost:9292;
4
4
  }
5
5
 
6
6
  # Send either X-Forwarded for or the actual scheme to the upsteam
@@ -8,3 +8,4 @@ map $http_x_forwarded_proto $app_proto {
8
8
  default $http_x_forwarded_proto;
9
9
  '' $scheme;
10
10
  }
11
+
@@ -1,14 +1,9 @@
1
+ #jinja2: lstrip_blocks: True
1
2
  {% include "_upstream.conf" %}
2
3
 
3
4
  server {
4
- listen 80;
5
- server_name {{server_name}} {{server_aliases | join(" ")}};
6
-
7
- {% include "_rails.conf" %}
8
-
9
- {% if asset_cors_domain is defined %}
10
- {% include "_asset_cors.conf" %}
11
- {% endif %}
5
+ listen 80;
6
+ server_name {{server_name}} {{server_aliases | join(" ")}};
12
7
 
8
+ {% include "_rails.conf" %}
13
9
  }
14
-
@@ -1,3 +1,4 @@
1
+ #jinja2: lstrip_blocks: True
1
2
  {% include "_upstream.conf" %}
2
3
 
3
4
  server {
@@ -12,7 +13,6 @@ server {
12
13
  server_name {{server_name}} {{server_aliases | join(" ")}};
13
14
 
14
15
  {% include "_rails.conf" %}
16
+
15
17
  {{nginx_ssl_config}}
16
18
  }
17
-
18
-
@@ -1,3 +1,3 @@
1
1
  module Subspace
2
- VERSION = "0.4.8"
2
+ VERSION = "0.4.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Samson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-15 00:00:00.000000000 Z
11
+ date: 2017-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler