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 +4 -4
- data/README.md +6 -1
- data/ansible/roles/common/templates/motd +1 -1
- data/ansible/roles/nginx-rails/templates/_asset_cors.conf +1 -1
- data/ansible/roles/nginx-rails/templates/_rails.conf +16 -9
- data/ansible/roles/nginx-rails/templates/_upstream.conf +3 -2
- data/ansible/roles/nginx-rails/templates/nginx-project +4 -9
- data/ansible/roles/nginx-rails/templates/nginx-project-ssl +2 -2
- data/lib/subspace/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c8133e94234ca95b79e12809a461336eda7563c
|
4
|
+
data.tar.gz: d5aee88949054a65d646228bc718c701fb7ed8e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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,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
|
-
|
3
|
-
|
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
|
-
|
5
|
-
|
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
|
-
|
data/lib/subspace/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|