rails-nginx 1.0.0.pre.beta.3 → 1.0.0.pre.beta.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cad04167b2aadcd733ebd4aef66cb0818608c3585b471cae1b449090feb7038
4
- data.tar.gz: 972696c21c1f831f025ffa0d9fbb32adf9f8a14ab56db63329445d82c05bfbbc
3
+ metadata.gz: 6ad4b0a55bb318d4b480cd0c1853ef84d73e58a81852011af914cc34fa4dec0c
4
+ data.tar.gz: d8424c2e24b3060628e99c2ebfa2f3913068b2275572a9509e29fb2719dbf77e
5
5
  SHA512:
6
- metadata.gz: 22f048103e456f8639f60778f77743346255628eddf760972c3bf3e207fbf7cf4859f15ddced34932375f7216417474c17a5aa52d5edc6f90adf97d18196162f
7
- data.tar.gz: 562affbbd6c628937c64dcf93728cca945d400534c1c45d7ca8a751ca5df83e219e78edd742be307aaea6f13b121a33dc28b137ab9ef0a9fb85e32a57a95888e
6
+ metadata.gz: dcda22bcae6a801ab6914bbd17dc5745a4d84936e531cd8b54d80e4a5a768984034d4c19e2f2cf74a961bb94ea5abc0c785735c34d2fff2d53ffd4164e6ac305
7
+ data.tar.gz: 1d2bfaa5d649a45d79e351bb44ad17173208bf8691ed10e537723dd2e71fc82400786213d4885226e6950227ab4cf88322266c6534d2a6e28c80962ad7d2969f
@@ -37,8 +37,12 @@ server {
37
37
 
38
38
  <% if options[:ssl] %>
39
39
  # ssl
40
+ <% if nginx_version >= Ruby::Nginx::Version.new("1.25.1") %>
40
41
  listen 443 ssl;
41
42
  http2 on;
43
+ <% else %>
44
+ listen 443 ssl http2;
45
+ <% end %>
42
46
  ssl_certificate <%= options[:ssl_certificate_path] %>;
43
47
  ssl_certificate_key <%= options[:ssl_certificate_key_path] %>;
44
48
  <% end %>
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rails
4
4
  module Nginx
5
- VERSION = "1.0.0-beta.3"
5
+ VERSION = "1.0.0-beta.4"
6
6
  end
7
7
  end
data/lib/rails/nginx.rb CHANGED
@@ -44,6 +44,7 @@ module Rails
44
44
  domain: domain,
45
45
  port: port,
46
46
  root_path: Rails.public_path,
47
+ template_path: File.expand_path("nginx/templates/nginx.conf.erb", __dir__),
47
48
  ssl: true,
48
49
  log: true,
49
50
  ssl_certificate_path: Rails.root.join("tmp/nginx/_#{domain}.pem"),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-nginx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.3
4
+ version: 1.0.0.pre.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bert McCutchen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-11 00:00:00.000000000 Z
11
+ date: 2025-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma
@@ -64,7 +64,7 @@ files:
64
64
  - README.md
65
65
  - lib/puma/plugin/rails_nginx.rb
66
66
  - lib/rails/nginx.rb
67
- - lib/rails/nginx/nginx.conf.erb
67
+ - lib/rails/nginx/templates/nginx.conf.erb
68
68
  - lib/rails/nginx/version.rb
69
69
  homepage: https://github.com/bert-mccutchen/rails-nginx
70
70
  licenses: